fix deprecated #4
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
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 }}" |