-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace node version matrix by reusable workflow
- Loading branch information
1 parent
021714a
commit 08490ef
Showing
2 changed files
with
61 additions
and
41 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,47 @@ | ||
name: Test workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
node-version: | ||
required: true | ||
type: number | ||
|
||
jobs: | ||
test: | ||
name: '${{ matrix.package }} - node.js v${{ inputs.node-version }}' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
package: | ||
- apollo-server-graphql-api | ||
- async-setup-with-delay | ||
- async-setup-with-file | ||
- babel | ||
- express-rest-api | ||
- karma | ||
- node-sqlite3 | ||
- playwright | ||
- programmatic-usage | ||
- puppeteer | ||
- react-webpack | ||
- rxjs | ||
- selenium | ||
- third-party-reporter | ||
- typescript | ||
- typescript-babel | ||
- vue-puppeteer | ||
steps: | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '${{ inputs.node-version }}' | ||
- uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: | | ||
cd packages/${{ matrix.package }} | ||
npm install | ||
- name: Run tests | ||
run: | | ||
cd packages/${{ matrix.package }} | ||
npm run test |
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