Skip to content

Commit

Permalink
run npm test in all js repos
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-block committed Jun 5, 2024
1 parent 8a90398 commit beea770
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/javascript-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on: [push]

jobs:
list-projects:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.build-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v2
- id: build-mastrix
run: echo "::set-output name=matrix::$(ls javascript/ | jq -Rsc 'split("\n")[:-1]')"

test-javascript:
needs: list-projects
runs-on: ubuntu-latest
strategy:
matrix:
project: ${{ fromJson(needs.list-projects.outputs.matrix) }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '20.4.0'
- name: Run tests
run: |
set -exuo pipefail
npm install
npm run test
with:
working-directory: "javascript/${{ matrix.project }}"

0 comments on commit beea770

Please sign in to comment.