@@ -2,36 +2,41 @@ name: Tests
22
33on :
44 push :
5- branches : [main, staging]
5+ # TODO uncomment
6+ # branches: [main, staging]
7+ branches : [main-test, staging]
68 pull_request :
7- branches : [main, staging]
9+ # TODO uncomment
10+ # branches: [main, staging]
11+ branches : [main-test, staging]
812
9- concurrency :
10- group : ${{ github.workflow }}-${{ github.ref }}
11- cancel-in-progress : true
13+ # concurrency:
14+ # group: ${{ github.workflow }}-${{ github.ref }}
15+ # cancel-in-progress: true
1216
1317jobs :
14- api-tests :
15- name : API Tests
16- runs-on : ubuntu-latest
17- steps :
18- - uses : actions/checkout@v3
19-
20- - name : Set up Docker Buildx
21- uses : docker/setup-buildx-action@v2
22-
23- - name : Build test image
24- uses : docker/build-push-action@v4
25- with :
26- context : ./api
27- file : ./api/Dockerfile
28- load : true
29- tags : api-test:latest
30- cache-from : type=gha
31- cache-to : type=gha,mode=max
32-
33- - name : Run tests
34- run : docker run --rm api-test:latest npm run test:ci
18+ # TODO uncomment
19+ # api-tests:
20+ # name: API Tests
21+ # runs-on: ubuntu-latest
22+ # steps:
23+ # - uses: actions/checkout@v3
24+
25+ # - name: Set up Docker Buildx
26+ # uses: docker/setup-buildx-action@v2
27+
28+ # - name: Build test image
29+ # uses: docker/build-push-action@v4
30+ # with:
31+ # context: ./api
32+ # file: ./api/Dockerfile
33+ # load: true
34+ # tags: api-test:latest
35+ # cache-from: type=gha
36+ # cache-to: type=gha,mode=max
37+
38+ # - name: Run tests
39+ # run: docker run --rm api-test:latest npm run test:ci
3540
3641 process-tests :
3742 name : Process Tests
@@ -55,35 +60,36 @@ jobs:
5560 - name : Run tests
5661 run : docker run --rm process-test:latest npm run test
5762
58- widget-benevolat-tests :
59- name : Widget benevolat Tests
60- runs-on : ubuntu-latest
61-
62- # Does not run if no files in widget-benevolat/ have been modified
63- if : ${{ github.event_name == 'push' || contains(toJSON(github.event.pull_request.files.*.filename), 'widget-benevolat/') }}
64- steps :
65- - uses : actions/checkout@v3
66-
67- - name : Use Node.js
68- uses : actions/setup-node@v3
69- with :
70- node-version : " 18.x"
71- cache : " npm"
72- cache-dependency-path : " widget-benevolat/package-lock.json"
73-
74- - name : Install dependencies
75- run : cd widget-benevolat && npm ci
76-
77- - name : Install Playwright browsers and dependencies
78- run : cd widget-benevolat && npx playwright install --with-deps
79-
80- - name : Run tests
81- run : cd widget-benevolat && npm run test:e2e
82-
83- - name : Upload HTML test report
84- uses : actions/upload-artifact@v4
85- if : always()
86- with :
87- name : playwright-report
88- path : widget-benevolat/tests/e2e/_playwright-report
89- retention-days : 30
63+ # TODO uncomment
64+ # widget-benevolat-tests:
65+ # name: Widget benevolat Tests
66+ # runs-on: ubuntu-latest
67+
68+ # # Does not run if no files in widget-benevolat/ have been modified
69+ # if: ${{ github.event_name == 'push' || contains(toJSON(github.event.pull_request.files.*.filename), 'widget-benevolat/') }}
70+ # steps:
71+ # - uses: actions/checkout@v3
72+
73+ # - name: Use Node.js
74+ # uses: actions/setup-node@v3
75+ # with:
76+ # node-version: "18.x"
77+ # cache: "npm"
78+ # cache-dependency-path: "widget-benevolat/package-lock.json"
79+
80+ # - name: Install dependencies
81+ # run: cd widget-benevolat && npm ci
82+
83+ # - name: Install Playwright browsers and dependencies
84+ # run: cd widget-benevolat && npx playwright install --with-deps
85+
86+ # - name: Run tests
87+ # run: cd widget-benevolat && npm run test:e2e
88+
89+ # - name: Upload HTML test report
90+ # uses: actions/upload-artifact@v4
91+ # if: always()
92+ # with:
93+ # name: playwright-report
94+ # path: widget-benevolat/tests/e2e/_playwright-report
95+ # retention-days: 30
0 commit comments