Skip to content

Commit

Permalink
move tests to yarn script
Browse files Browse the repository at this point in the history
  • Loading branch information
MSevey committed May 26, 2022
1 parent 9b1110a commit e0ead07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/ci_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,9 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

tests:
name: "Jest Tests"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
with:
node-version: 16.x

- run: yarn
- run: yarn jest

# Make a release if this is a manually trigger job, i.e. workflow_dispatch
release:
needs: [hadolint, check, tests]
needs: [hadolint, check]
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' }}
outputs:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"scripts": {
"lint": "yarn prettier --check .",
"format": "yarn prettier --write .",
"test": "echo 'Warning: no test script specified'",
"test": "yarn jest",
"build": "echo 'Warning: no build script specified'"
}
}

0 comments on commit e0ead07

Please sign in to comment.