Skip to content

Commit

Permalink
Chore: fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
leteu committed Dec 7, 2023
1 parent afcab62 commit 146c9ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ on:
branches: [main]
push:
branches: [main]
workflow_call:

jobs:
prepare:
uses: './.github/workflows/prepare.yml'

lint:
needs: [prepare]
runs-on: ubuntu-latest
name: Linting
steps:
- uses: './.github/workflows/prepare.yml'

- name: Check style
run: |
pnpm prettier
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
name: Code Test


on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_call:

jobs:
prepare:
uses: './.github/workflows/prepare.yml'

test:
needs: [prepare]
runs-on: ubuntu-latest
name: Testing
steps:
- uses: './.github/workflows/prepare.yml'

- name: Test
run: |
pnpm test

0 comments on commit 146c9ad

Please sign in to comment.