diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d44964834..94f9b72d3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,20 +8,6 @@ on: name: ci jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - node: [16, 18, 20, 22] - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node }} - - run: node --version - # Build is implicit with the "prepare" life cycle script - - run: npm ci --loglevel verbose - unit-test: runs-on: ubuntu-latest strategy: @@ -39,7 +25,7 @@ jobs: - run: npm ci --loglevel verbose --ignore-scripts - run: npm test - smoke-test: + build-and-smoke-test: runs-on: ubuntu-latest strategy: matrix: @@ -49,6 +35,7 @@ jobs: - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} + # Build is implicit with the "prepare" life cycle script - run: npm ci --loglevel verbose - run: npm run get-data - run: npx playwright install chromium @@ -56,14 +43,11 @@ jobs: lint: runs-on: ubuntu-latest - strategy: - matrix: - node: [16, 18, 20, 22] steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node }} + node-version: 18 # Note: --ignore-scripts skips an otherwise unnecessary Auspice build, but # also skips life cycle scripts for dependencies. If the job fails here, # try removing this flag. @@ -115,7 +99,7 @@ jobs: publish: if: ${{ github.ref == 'refs/heads/release' }} - needs: [build, unit-test, smoke-test, lint, check-lockfile] + needs: [build-and-smoke-test, unit-test, lint, type-check, check-lockfile] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4