.github/workflows/acceptance.yml
name: CIon: [pull_request]jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [ 18.x, 20.x, 21.x, 22.x ] steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 - name: Use Node.js uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' - name: Install Dependencies run: npm install - name: Run Build run: npm run build - name: Lint Codebase run: npm run lint - name: Unit Tests if: matrix.node-version != '22.x' run: npm run test - name: Publish code coverage if: matrix.node-version == '22.x' uses: paambaati/codeclimate-action@v8.0.0 env: CC_TEST_REPORTER_ID: ${{secrets.CODE_CLIMATE_REPORTER_ID}} with: coverageCommand: npm run coverage