generated from hmcts/expressjs-template
-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (45 loc) · 1.07 KB
/
ci.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
38
39
40
41
42
43
44
45
46
47
48
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
- refs/tags/*
tags:
- '*'
env:
CI: true
NODE_OPTIONS: --max-old-space-size=4096
CIVIL_SERVICE_URL: http://localhost:1111
TEST_URL: http://localhost:3001
IDAM_API_URL: http://localhost:1111
ENVIRONMENT: preview
LAUNCH_DARKLY_SDK: test
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 21.6.1
- name: Install
run: yarn install && yarn playwright install
- name: Build
run: yarn build
- name: Starting WireMock
run: yarn wiremock:start &
- name: Starting CUI
run: yarn start:e2e &
- name: Waiting CUI to get ready
run: sleep 10
- name: Executing e2e tests
run: yarn test:e2e
- name: Upload e2e test artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: integration-tests-results
path: test-results/functional