From e3a162587f36b2be5c3eeeacc9063448f72bfc48 Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Mon, 2 Jun 2025 13:31:33 +0200 Subject: [PATCH 1/2] chore: remove publish step as it should not be run on <=39 branches --- .github/workflows/node-publish.yml | 47 ------------------------------ 1 file changed, 47 deletions(-) delete mode 100644 .github/workflows/node-publish.yml diff --git a/.github/workflows/node-publish.yml b/.github/workflows/node-publish.yml deleted file mode 100644 index 6adfa0c877..0000000000 --- a/.github/workflows/node-publish.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: 'dhis2: publish (node)' - -on: - push: - branches: - - master - - next - - next-major - - alpha - - beta - - '[0-9]+.x' - - '[0-9]+.x.x' - - '[0-9]+.[0-9]+.x' - -env: - GIT_AUTHOR_NAME: '@dhis2-bot' - GIT_AUTHOR_EMAIL: 'apps@dhis2.org' - GIT_COMMITTER_NAME: '@dhis2-bot' - GIT_COMMITTER_EMAIL: 'apps@dhis2.org' - NPM_TOKEN: ${{secrets.DHIS2_BOT_NPM_TOKEN}} - GH_TOKEN: ${{secrets.DHIS2_BOT_GITHUB_TOKEN}} - -jobs: - publish: - runs-on: ubuntu-latest - if: "!contains(github.event.head_commit.message, '[skip ci]')" - steps: - - uses: actions/checkout@v2 - with: - token: ${{env.GH_TOKEN}} - - uses: actions/setup-node@v1 - with: - node-version: 14.x - - - name: Install - run: yarn install --frozen-lockfile - - - name: Build - run: yarn build - - - name: Test - run: yarn test - - - name: Publish to NPM - run: npx @dhis2/cli-utils release --publish npm - env: - CI: true From 5ecca3034afed1e5ad437f5319d8081b66d92809 Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Mon, 2 Jun 2025 13:33:52 +0200 Subject: [PATCH 2/2] chore: remove cypress testing because 39 is not a supported version --- .github/workflows/cypress.yml | 41 ----------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 .github/workflows/cypress.yml diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml deleted file mode 100644 index 6af580476a..0000000000 --- a/.github/workflows/cypress.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: 'dhis2: test (cypress)' - -on: - push: - branches: - - master - pull_request: - -env: - SERVER_START_CMD: 'yarn cypress:start' - SERVER_URL: 'http://localhost:3000' - CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} - REACT_APP_DHIS2_BASE_URL: ${{ secrets.CYPRESS_DHIS2_BASE_URL_39 }} - cypress_dhis2_base_url: ${{ secrets.CYPRESS_DHIS2_BASE_URL_39 }} - cypress_dhis2_username: ${{ secrets.DHIS2_USERNAME }} - cypress_dhis2_password: ${{ secrets.DHIS_PASSWORD }} - -jobs: - e2e: - runs-on: ubuntu-latest - if: "!contains(github.event.head_commit.message, '[skip ci]')" - strategy: - matrix: - containers: [1, 2, 3] - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Tests - uses: cypress-io/github-action@v2 - with: - record: true - parallel: true - start: ${{ env.SERVER_START_CMD }} - wait-on: ${{ env.SERVER_URL }} - wait-on-timeout: 60 - group: 'e2e' - env: - CI: true - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}