Skip to content

Commit

Permalink
implement matrix strategy over packages folders
Browse files Browse the repository at this point in the history
  • Loading branch information
matiassimon committed Jan 28, 2024
1 parent 84c77aa commit 3db4f86
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,36 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
package-folder:
- 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
node:
- 14
- 16
- 18
steps:
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node }}'
- uses: actions/checkout@v2
- name: 'Cache node_modules'
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-v${{ matrix.node }}-
- name: Install Dependencies
run: npm install
- name: Run All Node.js Tests
- uses: actions/checkout@v4
- name: Install dependencies
run: |
cd ${{ matrix.package-folder }}
npm install
- name: Run tests
run: npm run test

0 comments on commit 3db4f86

Please sign in to comment.