Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API-657 GH actions #978

Merged
merged 8 commits into from
Aug 5, 2021
Merged
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Test Branch
srknzl marked this conversation as resolved.
Show resolved Hide resolved
on:
push:
branches-ignore:
- 'gh-pages'
tags-ignore:
- '*'
pull_request:

jobs:
test-branch:
srknzl marked this conversation as resolved.
Show resolved Hide resolved
name: Test Branch (${{ matrix.os }})
srknzl marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]

steps:
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 8
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 10
- name: Disable line ending conversion of git
if: ${{ matrix.os == 'windows-latest'}}
run: |
git config --global core.autocrlf false
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies and compile client
run: |
npm install
npm run compile
- name: Lint
run: |
npm run lint
- name: Validate User Code
run: |
npm run validate-user-code
- name: Run OS tests
if: ${{ github.event_name == 'pull_request' }}
run: |
npm run coverage
- name: Run Enterprise tests
if: ${{ github.event_name == 'push' }}
env:
HAZELCAST_ENTERPRISE_KEY: ${{ secrets.HAZELCAST_ENTERPRISE_KEY }}
run: |
npm run coverage