chore(deps): bump @datadog/datadog-ci from 3.21.4 to 4.3.0 #3007
Workflow file for this run
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: build | |
| on: [push, pull_request] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up Node 22 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22 | |
| - name: Cache Node modules | |
| id: cache-node-modules | |
| uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1 | |
| with: | |
| path: "**/node_modules" | |
| key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
| - name: Install dependencies | |
| if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
| run: yarn install | |
| - name: Check formatting | |
| run: yarn check-formatting | |
| - name: Lint | |
| run: yarn lint | |
| - name: Install depcheck | |
| run: yarn global add depcheck | |
| - name: Run depcheck | |
| run: depcheck --ignores="@types/jest,serverless-step-functions" | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| max-parallel: 4 | |
| matrix: | |
| node-version: [20, 22] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Set up Node ${{ matrix.node-version }} | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Cache Node modules | |
| id: cache-node-modules | |
| uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4.2.1 | |
| with: | |
| path: "**/node_modules" | |
| key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
| - name: Install dependencies | |
| if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
| run: yarn install | |
| - name: Build | |
| run: yarn build | |
| - name: Run tests | |
| run: yarn test | |
| - name: Upload code coverage report | |
| run: bash <(curl -s https://codecov.io/bash) |