-
Notifications
You must be signed in to change notification settings - Fork 5
83 lines (75 loc) · 2.23 KB
/
test.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: Test
on:
pull_request:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
run-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: current
- run: bash .ci/runChecks.sh
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start Backbone
run: npm run start:backbone
- uses: actions/setup-node@v4
with:
node-version: current
- run: npm ci
- run: npm run build:ci --workspaces --if-present
- name: Start MongoDB
uses: supercharge/mongodb-github-action@v1
- run: npm run test:ci --workspaces --if-present
env:
DATABASE_CONNECTION_STRING: mongodb://127.0.0.1:27017
NMSHD_TEST_BASEURL: http://localhost:8090
NMSHD_TEST_CLIENTID: test
NMSHD_TEST_CLIENTSECRET: test
- name: Code coverage
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: false
files: ./coverage/cobertura-coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
test-ferret:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start Backbone
run: npm run start:backbone
- uses: actions/setup-node@v4
with:
node-version: current
- run: npm ci
- run: npm run build:ci --workspaces --if-present
- uses: js-soft/[email protected]
with:
ferretdb-telemetry: "enabled"
ferretdb-version: "1.20.1"
- run: npm run test:ci
env:
DATABASE_CONNECTION_STRING: mongodb://127.0.0.1:27017
NMSHD_TEST_BASEURL: http://localhost:8090
NMSHD_TEST_CLIENTID: test
NMSHD_TEST_CLIENTSECRET: test
build-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the productive docker image
run: bash .ci/testBuildingProductiveDockerImage.sh
lint-helm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: azure/setup-helm@v4
- run: helm lint ./helmChart