123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- name: Lint stylelint
- on: pull_request
- permissions:
- contents: read
- concurrency:
- group: lint-stylelint-${{ github.head_ref || github.run_id }}
- cancel-in-progress: true
- jobs:
- lint:
- runs-on: ubuntu-latest
- name: stylelint
- steps:
- - name: Checkout
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- - name: Read package.json node and npm engines version
- uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4
- id: versions
- with:
- fallbackNode: '^20'
- fallbackNpm: '^10'
- - name: Set up node ${{ steps.versions.outputs.nodeVersion }}
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
- with:
- node-version: ${{ steps.versions.outputs.nodeVersion }}
- - name: Set up npm ${{ steps.versions.outputs.npmVersion }}
- run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
- - name: Install dependencies
- env:
- CYPRESS_INSTALL_BINARY: 0
- run: npm ci
- - name: Lint
- run: npm run stylelint
|