-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actions: run workflow on pull_request
- Loading branch information
1 parent
2cb45c1
commit 65c06c3
Showing
3 changed files
with
31 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Unit Tests | ||
on: workflow_call | ||
jobs: | ||
unit-tests: | ||
runs-on: '${{ matrix.os }}' | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-20.04 | ||
node-version: | ||
- 12.x | ||
- 14.x | ||
- 16.x | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: 'Install node.js ${{ matrix.node-version }}' | ||
uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: '${{ matrix.node-version }}' | ||
- name: Run unit tests | ||
run: | | ||
npm install | ||
npm run ci |
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,6 @@ | ||
name: Continuous Integration | ||
on: pull_request | ||
jobs: | ||
unit-tests: | ||
if: github.event.repository.name != 'pelias' | ||
uses: ./.github/workflows/_test.yml |
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