Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(workflows): configure tests workflow
This adds a workflow to run test cases against pull requests to the main and support branches.
- Loading branch information
Jonathan Golden
committed
Nov 11, 2020
1 parent
665aa40
commit a86846c
Showing
2 changed files
with
31 additions
and
1 deletion.
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,30 @@ | ||
name: Tests | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- support/** | ||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: [ '10.x', '12.x' ] | ||
name: Node ${{ matrix.node }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
git remote set-branches --add origin main | ||
git fetch | ||
- name: Setup Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- name: Install Dependencies | ||
run: npm ci | ||
env: | ||
NODE_ENV: development | ||
- name: Unit Tests | ||
run: npm run test | ||
env: | ||
NODE_ENV: production |
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