Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 1 | name: tests |
| 2 | |
| 3 | on: [push] |
| 4 | |
Marc Kupietz | 09b7575 | 2023-10-07 09:32:19 +0200 | [diff] [blame^] | 5 | permissions: |
| 6 | contents: read |
| 7 | |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 8 | jobs: |
| 9 | build: |
| 10 | |
| 11 | runs-on: ubuntu-latest |
| 12 | |
| 13 | strategy: |
| 14 | matrix: |
Marc Kupietz | 09b7575 | 2023-10-07 09:32:19 +0200 | [diff] [blame^] | 15 | node-version: [14.x] |
Christophe Dervieux | e1893ae | 2021-10-07 17:09:02 +0200 | [diff] [blame] | 16 | |
| 17 | steps: |
| 18 | - uses: actions/checkout@v2 |
| 19 | - name: Use Node.js ${{ matrix.node-version }} |
| 20 | uses: actions/setup-node@v1 |
| 21 | with: |
| 22 | node-version: ${{ matrix.node-version }} |
| 23 | - run: npm install |
| 24 | - run: npm run build --if-present |
| 25 | - run: npm test |
| 26 | env: |
| 27 | CI: true |