From d04ed914f468004a0f1ddb0ef3a67342597d630c Mon Sep 17 00:00:00 2001 From: ismay Date: Mon, 10 Jun 2024 15:59:31 +0200 Subject: [PATCH] ci: add build job --- .github/workflows/build.yml | 14 ++++++++++++++ .github/workflows/dhis2-verify-app.yml | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..63690eb1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,14 @@ +on: + workflow_call: + +jobs: + build: + 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