Skip to content

Bump vite and nuxt in /javascript/shared-todo-completed #34

Bump vite and nuxt in /javascript/shared-todo-completed

Bump vite and nuxt in /javascript/shared-todo-completed #34

name: JavaScript Tests
on: [push]
jobs:
list-projects:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.build-matrix.outputs.result }}
steps:
- uses: actions/checkout@v2
- name: discover all examples
id: build-matrix
uses: actions/github-script@v7
with:
script: |
const { readdirSync, existsSync } = require('node:fs');
const projects = [];
const language = 'javascript';
for (const project of readdirSync(language)) {
if (existsSync(language + '/' + project + '/.tbd-example.json')) {
projects.push(language + '/' + project);
}
}
return projects;
test-javascript:
needs: list-projects
runs-on: ubuntu-latest
strategy:
fail-fast: false
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: node .github/run-tests.mjs ${{ matrix.project }}