upgrade ppmpredictor #120
This file contains hidden or 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: Test | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| unit: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [22] | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| cache-dependency-path: tests/package-lock.json | |
| - name: Install dependencies | |
| working-directory: tests | |
| run: npm ci | |
| - name: Run Jest tests | |
| working-directory: tests | |
| run: npm run test | |
| - name: Run ESLint | |
| working-directory: tests | |
| run: npm run eslint | |
| continue-on-error: true | |
| e2e: | |
| runs-on: ubuntu-latest | |
| needs: unit | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: tests/package-lock.json | |
| - name: Install app dependencies | |
| run: npm ci | |
| - name: Install dependencies | |
| working-directory: tests | |
| run: npm ci | |
| - name: Run Cypress tests | |
| working-directory: tests | |
| run: npm run cy:test |