| name: CI |
| |
| on: |
| push: |
| branches: |
| - master |
| pull_request: |
| branches: |
| - master |
| schedule: |
| - cron: '0 1 * * *' |
| |
| permissions: |
| contents: read # for actions/checkout to fetch code |
| |
| concurrency: |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
| cancel-in-progress: true |
| |
| jobs: |
| lint: |
| name: Lint |
| runs-on: ubuntu-latest |
| timeout-minutes: 5 |
| |
| steps: |
| - uses: actions/checkout@master |
| |
| - uses: actions/setup-node@v3 |
| with: |
| node-version: 18 |
| cache: 'npm' |
| |
| - name: Install dependencies |
| run: | |
| npm install |
| |
| - name: Grunt lint |
| run: | |
| node_modules/.bin/grunt jshint |