Add stylelinter #1
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
| --- | |
| on: # yamllint disable-line rule:truthy | |
| workflow_call: | |
| inputs: | |
| repository: | |
| description: 'The repository that needs linting' | |
| type: string | |
| default: ${{ github.repository }} | |
| required: false | |
| ref: | |
| description: 'The branch, tag or SHA that needs linting' | |
| type: string | |
| required: false | |
| default: ${{ github.ref }} | |
| jobs: | |
| linter: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install NodeJS | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: latest | |
| - name: Install ESLint | |
| run: npm ci | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| repository: ${{ inputs.repository }} | |
| ref: ${{ inputs.ref }} | |
| - name: Lint ECMAScript | |
| uses: sibiraj-s/action-eslint@v3 | |
| with: | |
| all-files: true |