diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..55090212 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,14 @@ +on: + workflow_call: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'yarn' + - run: yarn install --frozen-lockfile + - run: yarn d2-app-scripts build diff --git a/.github/workflows/dhis2-verify-app.yml b/.github/workflows/dhis2-verify-app.yml index 76b1be7a..65b7ffa5 100644 --- a/.github/workflows/dhis2-verify-app.yml +++ b/.github/workflows/dhis2-verify-app.yml @@ -14,6 +14,9 @@ env: D2_VERBOSE: true jobs: + build: + uses: ./.github/workflows/build.yml + lint: uses: ./.github/workflows/lint.yml