forked from ministryoftesting/mot-cert-support-app-js
37 lines (34 loc) · 975 Bytes
/
build_test_react.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: NodeJS CI
on: [push]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Unit checks
run: |
npm ci
npm test -- --reporters=jest-junit
- name: E2E checks
run: |
npm start &
curl --head -X GET --retry 60 --retry-connrefused --retry-delay 1 http://localhost:300010
npx wdio run ./wdio.conf.js
- name: Build production artifacts
run: |
npm run build --if-present
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v2
if: always()
with:
files: |
junit.xml
reports/e2e-report/*.xml