Skip to content

Commit

Permalink
Merge branch 'master' into DHIS2-14516/fix-time-stamps
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzemp authored Mar 1, 2023
2 parents 6a04f3f + b4e5eb2 commit 70a27e7
Show file tree
Hide file tree
Showing 49 changed files with 5,364 additions and 5,471 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dhis2-netlify-deploy-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
if: "!github.event.push.repository.fork && github.actor != 'dependabot[bot]'"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 12.x
node-version: 16

- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --frozen-lockfile
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dhis2-netlify-deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 16

- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --frozen-lockfile
Expand Down
76 changes: 34 additions & 42 deletions .github/workflows/dhis2-verify-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 12.x
node-version: 16

- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --frozen-lockfile
Expand All @@ -49,9 +49,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 12.x
node-version: 16

- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --frozen-lockfile
Expand All @@ -68,9 +68,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 12.x
node-version: 16

- uses: c-hive/gha-yarn-cache@v1
- run: yarn install --frozen-lockfile
Expand All @@ -83,52 +83,44 @@ jobs:
- name: Test
run: yarn d2-app-scripts test

#e2e:
# runs-on: ubuntu-latest
# if: "!github.event.push.repository.fork && github.actor != 'dependabot[bot]'"
#
# strategy:
# fail-fast: false
# matrix:
# containers: [1, 2, 3, 4]
#
# steps:
# - name: Checkout
# uses: actions/checkout@v2
#
# - uses: actions/setup-node@v1
# with:
# node-version: 12.x
#
# - name: End-to-End tests
# uses: cypress-io/github-action@v2
# with:
# # This should be a command that serves the app.
# start: yarn d2-app-scripts start
# wait-on: 'http://localhost:3000'
# wait-on-timeout: 300
# record: true
# parallel: true
# env:
# BROWSER: none
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# CYPRESS_dhis2BaseUrl: https://debug.dhis2.org/dev
# CYPRESS_dhis2ApiVersion: 37
# CYPRESS_networkMode: stub
e2e:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
containers: [1, 2, 3, 4]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
- name: End-to-End tests
uses: cypress-io/github-action@v2
with:
start: yarn start:nobrowser
wait-on: 'http://localhost:3000'
wait-on-timeout: 300
record: true
parallel: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_dhis2BaseUrl: http://localhost:8080
CYPRESS_dhis2ApiVersion: 40
CYPRESS_networkMode: stub

release:
runs-on: ubuntu-latest
needs: [build, lint, test] # add e2e if you use it
needs: [build, lint, test, e2e]
if: "!github.event.push.repository.fork && github.actor != 'dependabot[bot]'"
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.DHIS2_BOT_GITHUB_TOKEN }}

- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 12.x
node-version: 16

- uses: actions/download-artifact@v2
with:
Expand Down
3 changes: 1 addition & 2 deletions cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"video": false,
"env": {
"dhis2DataTestPrefix": "dhis2-scheduler",
"networkMode": "live",
"dhis2ApiVersion": "38"
"dhis2ApiVersion": "40"
}
}

This file was deleted.

271 changes: 0 additions & 271 deletions cypress/fixtures/network/38/jobs_can_be_filtered.json

This file was deleted.

372 changes: 0 additions & 372 deletions cypress/fixtures/network/38/static_resources.json

This file was deleted.

271 changes: 0 additions & 271 deletions cypress/fixtures/network/38/system_job_actions.json

This file was deleted.

271 changes: 0 additions & 271 deletions cypress/fixtures/network/38/system_job_visibility_can_be_toggled.json

This file was deleted.

339 changes: 0 additions & 339 deletions cypress/fixtures/network/38/user_job_actions.json

This file was deleted.

271 changes: 0 additions & 271 deletions cypress/fixtures/network/38/user_jobs_can_be_enabled_and_disabled.json

This file was deleted.

This file was deleted.

Loading

0 comments on commit 70a27e7

Please sign in to comment.