Workflows/Remove Timeout For Reusable Workflows #1013
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: Lint JS and CSS | |
| on: | |
| push: | |
| branches: [main, stage, develop] | |
| pull_request: | |
| branches: [main, stage, develop] | |
| paths: | |
| - '**.css' | |
| - '**.js' | |
| - '**.json' | |
| - '**.yml' | |
| # Cancels all previous workflow runs for pull requests that have not completed. | |
| concurrency: | |
| # The concurrency group contains the workflow name and the branch name for pull requests | |
| # or the commit hash for any other events. | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/[email protected] | |
| - name: Setup Node.js environment | |
| uses: actions/[email protected] | |
| with: | |
| node-version-file: 'package.json' | |
| check-latest: true | |
| cache: npm | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Run linters | |
| run: npm run lint |