Skip to content

πŸ’š Fixed up some CI issues #222

πŸ’š Fixed up some CI issues

πŸ’š Fixed up some CI issues #222

Workflow file for this run

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