Skip to content

Commit

Permalink
ci: add verification workflow (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Aug 8, 2024
1 parent 966b35b commit 2d4ff97
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Pull request

on:
pull_request:
branches: [main]
# Add trigger for `ready_for_review`
# https://github.com/changesets/action/issues/187
types: [opened, reopened, synchronize, ready_for_review]

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

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

on: [workflow_call, workflow_dispatch]

jobs:
verify:
runs-on: ubuntu-latest

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

0 comments on commit 2d4ff97

Please sign in to comment.