chore: add workflow that doesn't succeed until PR tasks completed #173
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'dhis2: verify (app)' | |
on: | |
pull_request: | |
types: ['opened', 'edited', 'reopened', 'synchronize'] | |
concurrency: | |
group: ${{ github.workflow}}-${{ github.ref }} | |
jobs: | |
verify: | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install | |
run: yarn install --frozen-lockfile | |
- name: Lint | |
run: yarn d2-style check | |
- name: Test | |
run: yarn test | |
- name: Build | |
run: yarn build |