-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ab770f9
commit 7c52b2f
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: CI | ||
'on': | ||
push: | ||
branches: | ||
- master | ||
- beta | ||
- '[0-9].[0-9x].x' | ||
paths-ignore: | ||
- README.md | ||
- .husky/* | ||
- .idea/* | ||
- .vscode/* | ||
pull_request: null | ||
workflow_dispatch: null | ||
jobs: | ||
build_and_package: | ||
runs-on: ubuntu-latest | ||
env: | ||
NODE_OPTIONS: '--max_old_space_size=4096' | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
if: ${{ github.event_name != 'pull_request' }} | ||
with: | ||
token: ${{ secrets.DEVOPS_TOKEN }} | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: npm | ||
- name: Install NPM Dependencies | ||
run: npm ci --verbose | ||
- name: Get number of CPU cores | ||
uses: SimenB/github-actions-cpu-cores@v1 | ||
id: cpu-cores | ||
- name: Run Tests | ||
run: npm test -- --coverage --maxWorkers=${{ steps.cpu-cores.outputs.count }} |