diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 00000000..09a0cb15 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -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 diff --git a/.github/workflows/verification.yml b/.github/workflows/verification.yml new file mode 100644 index 00000000..81c5650e --- /dev/null +++ b/.github/workflows/verification.yml @@ -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