Skip to content

Commit

Permalink
ci: verification workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Jul 20, 2024
1 parent 61985be commit 65ab8f2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Pull request

on:
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
verify:
uses: ./.github/workflows/verification.yml
15 changes: 15 additions & 0 deletions .github/workflows/verification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Verify

on: ["workflow_call", "workflow_dispatch"]

jobs:
verify:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- run: yarn prettier --check .
- run: yarn lint
- run: yarn test
- run: yarn build

0 comments on commit 65ab8f2

Please sign in to comment.