Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ master ]
branches: [main]
pull_request:
branches: [ master ]
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
Expand All @@ -31,11 +28,16 @@ jobs:

# Runs a set of commands using the runners shell
- name: Test
run: npm run test-jenkins
uses: mattallty/jest-github-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
test-command: 'npm run coverage-jenkins'

# Upload test results
- uses: actions/upload-artifact@v2
if: success() || failure() # run this step even if previous step failed
- uses: actions/upload-artifact@v4
if: sucess() || failure()
with:
name: test-results
path: ./coverage/test.results.xml
path: |
./coverage/