π Fixed up some CI issues #222
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: | |
branches: | |
- main | |
jobs: | |
ci: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [16] | |
steps: | |
- name: Checkout π | |
id: checkout | |
uses: actions/checkout@master | |
- name: Setup node env π | |
id: setup-node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
check-latest: true | |
- name: Cache dependencies π¦ | |
uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies π¨π»βπ» | |
id: install-npm-dependencies | |
run: npm install | |
- name: Run the auto lint fixer π | |
id: run-lint-fixer | |
run: npm run lintfix | |
- id: commit-and-push | |
name: "Commit and push changes if anything changed π" | |
run: |- | |
git config user.name "GitHub Actions" | |
git config user.email "[email protected]" | |
git add -A | |
git commit -m ":rotating_light: Auto fixed some linter warnings." || exit 0 | |
git push | |
- name: Run the linter π | |
id: run-lint | |
run: npm run lint |