Skip to content

fix deprecated

fix deprecated #4

name: JavaScript Tests
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 "name=matrix::$(ls javascript/ | jq -Rsc 'split("\n")[:-1]')" | tee -a ${GITHUB_OUTPUT}
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
working-directory: "javascript/${{ matrix.project }}"