Skip to content

Commit

Permalink
ci: verification workflow (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
tien authored Jul 20, 2024
1 parent 2c6abf1 commit 3ba1303
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: Verification

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 3ba1303

Please sign in to comment.