-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Runs the test suite in GitHub Actions - Adds Dependabot configuration for GitHub Actions CircleCI configuration will be removed later, for now we can run the tests in both CircleCI and GitHub Actions.
- Loading branch information
Showing
2 changed files
with
57 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
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,49 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
test: | ||
name: "test-node-${{ matrix.node-version }}" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [14, 16, 18, 20] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup NodeJS ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'yarn' | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Run tests | ||
env: | ||
JEST_JUNIT_OUTPUT_DIR: ./test-reports/jest | ||
JEST_JUNIT_OUTPUT_NAME: results.xml | ||
JEST_JUNIT_CLASSNAME: "{filepath}" | ||
run: yarn ci:test | ||
|
||
- name: Upload test results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: test-results-node-${{ matrix.node-version }} | ||
path: ./test-reports | ||
|
||
- name: Test summary | ||
uses: test-summary/action@v1 | ||
with: | ||
paths: ./test-reports/jest/results.xml |