-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update publish and unit tests workflow
- Loading branch information
1 parent
b1debf1
commit 7961af1
Showing
3 changed files
with
34 additions
and
37 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 was deleted.
Oops, something went wrong.
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,33 @@ | ||
# This workflow will install JavaScript dependencies, run tests and lint. | ||
|
||
name: unit tests | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
name: Build and run tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: ["12.x", "14.x", "16.x"] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Node ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Build package in production mode | ||
run: npm run build | ||
- name: Lint with standard | ||
run: npm run lint | ||
- name: Test with jest | ||
run: npm run test |