-
Notifications
You must be signed in to change notification settings - Fork 7
62 lines (51 loc) · 1.46 KB
/
code-review.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: "Continuous Integration"
on:
pull_request:
types: [opened, edited, synchronize, reopened, ready_for_review]
paths:
- .github/workflows/code-review.yaml
- e2e/**
- package.json
- openapi/**
- src/**
workflow_dispatch:
jobs:
code_review:
name: Run linting, build and unit tests
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Build the project
uses: ./.github/actions/build-project
- name: Lint
run: yarn lint
shell: bash
- name: Unit Tests
run: yarn test:coverage
shell: bash
integration_tests:
name: E2E Tests
timeout-minutes: 10
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
# Building the main project is required to execute e2e tests.
# for reference, the current Dockerfile copies most of the assets
# produced by the build steps
- name: Build the project
# prebuild script includes generate steps
uses: ./.github/actions/build-project
- name: Install dependencies for e2e tests
run: |
cd e2e
yarn install --frozen-lockfile
shell: bash
- name: Run e2e tests
run: |
cd e2e
yarn build
yarn start
shell: bash