name: Check on: push: branches: - 'main' pull_request: branches: - '**' jobs: check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Use Node.js 18 uses: actions/setup-node@v3 with: cache: npm node-version: 18 - name: Install npm deps run: npm ci - name: Check the build run: npm run check - name: Code linting run: npm run lint