Skip to content

Commit

Permalink
chore: remove commit action from lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hougesen authored Feb 27, 2024
1 parent 2e89586 commit a99a957
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,42 @@
name: ci
on:
push:
branches:
- master

jobs:
ci:
lint:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: [16]
node: [16, 18, 20]

steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@master
uses: actions/checkout@v4

- name: Setup node env πŸ—
uses: actions/setup-node@v2.1.2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
check-latest: true

- name: Cache node_modules πŸ“¦
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-${{ matrix.node }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-${{ matrix.node }}-node-
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: npm ci
run: npm install

- name: Build project
run: npm run build

- name: Sort imports
run: npx @maikudou/import-sorter .

- name: Run format πŸ’Ž
run: npm run format

- name: Run lint πŸ‘€
run: npm run lint

- name: Run test πŸ‘€
run: npm run test

- uses: EndBug/add-and-commit@v7
with:
message: 'build: code quality fixes from ci.yml'

0 comments on commit a99a957

Please sign in to comment.