File tree Expand file tree Collapse file tree
actions/integration-tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11version : 2
22
3- integration_steps : &integration_steps
4- steps :
5- - checkout
6-
7- - run :
8- name : Install dependencies
9- command : |
10- npm ci
11- environment :
12- CYPRESS_INSTALL_BINARY : 0
13-
14- - run :
15- name : Integration tests
16- when : always
17- environment :
18- mocha_reporter : mocha-junit-reporter
19- MOCHA_FILE : junit/integration/results.xml
20- command : npm run test:integration
21-
22- - store_test_results :
23- path : junit
24-
253services_steps : &services_steps
264 steps :
275 - checkout
@@ -48,22 +26,6 @@ services_steps: &services_steps
4826 path : junit
4927
5028jobs :
51- integration :
52- docker :
53- - image : cimg/node:16.15
54- - image : redis
55-
56- << : *integration_steps
57-
58- integration@node-17 :
59- docker :
60- - image : cimg/node:17.9
61- - image : redis
62- environment :
63- NPM_CONFIG_ENGINE_STRICT : ' false'
64-
65- << : *integration_steps
66-
6729 danger :
6830 docker :
6931 - image : cimg/node:16.15
@@ -185,10 +147,6 @@ workflows:
185147
186148 on-commit :
187149 jobs :
188- - integration@node-17 :
189- filters :
190- branches :
191- ignore : gh-pages
192150 - frontend :
193151 filters :
194152 branches :
Original file line number Diff line number Diff line change 1+ name : ' Integration tests'
2+ description : ' Run integration tests'
3+ inputs :
4+ github-token :
5+ description : ' The GITHUB_TOKEN secret'
6+ required : true
7+ runs :
8+ using : ' composite'
9+ steps :
10+ - name : Integration Tests
11+ if : always()
12+ run : npm run test:integration -- --reporter json --reporter-option 'output=reports/integration-tests.json'
13+ env :
14+ GH_TOKEN : ' ${{ inputs.github-token }}'
15+ shell : bash
16+
17+ - name : Write Markdown Summary
18+ if : always()
19+ run : node scripts/mocha2md.js Integration reports/integration-tests.json >> $GITHUB_STEP_SUMMARY
20+ shell : bash
Original file line number Diff line number Diff line change 1+ name : Integration@node 17
2+ on :
3+ pull_request :
4+ push :
5+ branches-ignore :
6+ - ' gh-pages'
7+
8+ jobs :
9+ test-integration-17 :
10+ runs-on : ubuntu-latest
11+
12+ services :
13+ redis :
14+ image : redis
15+ options : >-
16+ --health-cmd "redis-cli ping"
17+ --health-interval 10s
18+ --health-timeout 5s
19+ --health-retries 5
20+ ports :
21+ - 6379:6379
22+
23+ steps :
24+ - name : Checkout
25+ uses : actions/checkout@v3
26+
27+ - name : Setup
28+ uses : ./.github/actions/setup
29+ with :
30+ node-version : 17
31+ env :
32+ NPM_CONFIG_ENGINE_STRICT : ' false'
33+
34+ - name : Integration Tests
35+ uses : ./.github/actions/integration-tests
36+ with :
37+ github-token : ' ${{ secrets.GITHUB_TOKEN }}'
Original file line number Diff line number Diff line change 1+ name : Integration
2+ on :
3+ pull_request :
4+ push :
5+ branches-ignore :
6+ - ' gh-pages'
7+
8+ jobs :
9+ test-integration :
10+ runs-on : ubuntu-latest
11+
12+ services :
13+ redis :
14+ image : redis
15+ options : >-
16+ --health-cmd "redis-cli ping"
17+ --health-interval 10s
18+ --health-timeout 5s
19+ --health-retries 5
20+ ports :
21+ - 6379:6379
22+
23+ steps :
24+ - name : Checkout
25+ uses : actions/checkout@v3
26+
27+ - name : Setup
28+ uses : ./.github/actions/setup
29+ with :
30+ node-version : 16
31+
32+ - name : Integration Tests
33+ uses : ./.github/actions/integration-tests
34+ with :
35+ github-token : ' ${{ secrets.GITHUB_TOKEN }}'
You can’t perform that action at this time.
0 commit comments