.github/workflows/main.yml
name: CI on: push: branches: - main pull_request: jobs: lint: name: Linting runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 22 cache: npm - run: npm ci - run: npm run lint test: name: test - Node.js ${{ matrix.node-version }} runs-on: ubuntu-latest strategy: matrix: node-version: - 22 - 20 - 18 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: npm - run: npm ci - run: npm test coverage: name: Coverage runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 22 cache: npm - run: npm ci - uses: paambaati/codeclimate-action@v9.0.0 env: CC_TEST_REPORTER_ID: 10e37056052b202e8d2bf9e2c61a8e2cb1432d01518fd0886c2bff4c353eefa4 with: coverageCommand: npm run coverage