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 94460bc
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 45 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Prepare
name: Setup

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

jobs:
prepare:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

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

jobs:
lint:
runs-on: ubuntu-latest
name: Linting
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Use Prepare Job
uses: ./.github/actions/setup

- name: Check style
run: |
pnpm prettier
- name: LINTing
run: |
pnpm lint
test:
runs-on: ubuntu-latest
name: Testing
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Use Prepare Job
uses: ./.github/actions/setup

- name: Test
run: |
pnpm test
24 changes: 0 additions & 24 deletions .github/workflows/quality.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 94460bc

Please sign in to comment.