-
-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rafa
committed
Nov 4, 2024
1 parent
daae420
commit 6457da6
Showing
1 changed file
with
91 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,6 +105,95 @@ jobs: | |
- name: Run Tests | ||
run: npm run ${{ matrix.cmd }} | ||
|
||
test-cht-form: | ||
needs: build | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
- run: sudo apt-get install -y xsltproc | ||
- run: npm ci | ||
- name: Build cht-form Web Component | ||
run: npm run build-cht-form | ||
- name: Run Tests | ||
run: npm run integration-cht-form | ||
|
||
tests-k3d: | ||
needs: build | ||
name: ${{ matrix.cmd }} | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 60 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
cmd: ['ci-integration-all-k3d', 'ci-integration-sentinel-k3d'] | ||
|
||
steps: | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ env.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
if: ${{ env.INTERNAL_CONTRIBUTOR }} | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-access-key-id: ${{ secrets.ECR_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.ECR_SECRET_ACCESS_KEY }} | ||
aws-region: eu-west-2 | ||
if: ${{ env.INTERNAL_CONTRIBUTOR }} | ||
|
||
- name: Login to Amazon ECR | ||
id: login-ecr | ||
if: ${{ env.INTERNAL_CONTRIBUTOR }} | ||
uses: aws-actions/amazon-ecr-login@v2 | ||
with: | ||
mask-password: 'true' | ||
|
||
- name: Use Node.js ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Download docker images artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: cht-images | ||
path: images/ | ||
if: ${{ !env.INTERNAL_CONTRIBUTOR }} | ||
- name: Load docker images | ||
run: ls -1 *.tar | xargs --no-run-if-empty -L 1 docker load -i | ||
working-directory: images/ | ||
if: ${{ !env.INTERNAL_CONTRIBUTOR }} | ||
|
||
- run: mkdir tests/logs | ||
- run: python -m pip install git+https://github.com/medic/[email protected]#egg=pyxform-medic | ||
- run: npm install -g cht-conf | ||
- run: npm ci | ||
|
||
- uses: nolar/setup-k3d-k3s@v1 | ||
- uses: azure/[email protected] | ||
- uses: azure/setup-kubectl@v4 | ||
- name: Run tests | ||
run: npm run ${{ matrix.cmd }} | ||
- name: Archive Results | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.cmd }} | ||
path: | | ||
allure-results | ||
allure-report | ||
tests/logs | ||
tests/results/ | ||
if: ${{ failure() }} | ||
|
||
translations: | ||
needs: build | ||
name: Lint translations | ||
|
@@ -140,6 +229,7 @@ jobs: | |
- cmd: ci-webdriver-default | ||
suite: core | ||
chrome-version: 90 | ||
exclude: | ||
- cmd: ci-webdriver-default | ||
suite: core | ||
chrome-version: latest | ||
|
@@ -155,7 +245,7 @@ jobs: | |
suite: lowLevel | ||
- cmd: ci-webdriver-default | ||
suite: workflows | ||
exclude: # temporary until all suites run on Chrome 90 | ||
# exclude: # temporary until all suites run on Chrome 90 | ||
- cmd: ci-integration-all | ||
chrome-version: 90 | ||
- cmd: ci-integration-sentinel | ||
|