name: CI on: push: branches: [main] pull_request: branches: [main] # Automatically cancel in-progress actions on the same branch concurrency: group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} cancel-in-progress: true jobs: test: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - name: Setup Node uses: actions/setup-node@v3 with: node-version: 20 cache: npm - name: Install Dependencies run: npm ci - name: Test run: npm t lint: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - name: Setup Node uses: actions/setup-node@v3 with: node-version: 20 cache: npm - name: Install Dependencies run: npm ci - name: Lint run: npm run lint