Bump tj-actions/changed-files from 37 to 39 #5847
Workflow file for this run
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
stylelint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run dist | |
- name: Lint source files | |
run: npx stylelint --fix | |
- name: Look for unused stylelint:disable lines | |
run: npm run stylelint -- --report-needless-disables | |
- name: Push up any fixes | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Fixing stylelint issues | |
commit_user_name: GitHub Design Engineering Bot | |
commit_user_email: [email protected] | |
commit_author: primer-css <[email protected]> | |
file_pattern: src/**/*.scss | |
eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- run: npm ci | |
- name: Lint workflow files | |
run: npm run eslint | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- run: npm ci | |
- name: Jest | |
run: npm test |