-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #323 from pelias/nodejs-18-and-ci-updates
CI updates: Modern Node.js versions, action version updates, standard template
- Loading branch information
Showing
3 changed files
with
34 additions
and
38 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,21 @@ | ||
name: Unit Tests | ||
on: workflow_call | ||
jobs: | ||
unit-tests: | ||
runs-on: '${{ matrix.os }}' | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-22.04 | ||
node-version: [ 18.x, 20.x ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: 'Install node.js ${{ matrix.node-version }}' | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '${{ matrix.node-version }}' | ||
- name: Run unit tests | ||
run: | | ||
[[ -f ./bin/ci-setup ]] && ./bin/ci-setup | ||
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,7 @@ | ||
name: Continuous Integration | ||
on: pull_request | ||
jobs: | ||
unit-tests: | ||
# only run this job for forks | ||
if: github.event.pull_request.head.repo.full_name != github.repository | ||
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