Skip to content

Commit

Permalink
ci(github): split test and lint workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kubosho committed Jul 21, 2024
1 parent d861d0f commit d477833
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 21 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Linting

on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: 20

- name: Install modules
run: npm ci

- name: Run lints
run: |
npm run lint:script
npm run lint:style
npm run lint:markup
22 changes: 1 addition & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [main, master]

jobs:
lint:
test:
runs-on: ubuntu-latest

steps:
Expand All @@ -21,25 +21,5 @@ jobs:
- name: Install modules
run: npm ci

- name: Run lints
run: |
npm run lint:script
npm run lint:style
npm run lint:markup
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install modules
run: npm ci

- name: Run testing
run: npm test

0 comments on commit d477833

Please sign in to comment.