forked from cs3org/reva
-
Notifications
You must be signed in to change notification settings - Fork 0
113 lines (112 loc) · 2.89 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: Test
on:
pull_request:
push:
branches:
- "*"
workflow_dispatch:
jobs:
integration:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go environment
uses: actions/[email protected]
with:
go-version-file: go.mod
- name: Test integration
run: make test-integration
env:
REDIS_ADDRESS: redis:6379
SQL_USERNAME: root
SQL_PASSWORD: my-secret-pw
SQL_ADDRESS: localhost:3306
SQL_DBNAME: reva
services:
redis:
image: registry.cern.ch/docker.io/webhippie/redis
mysql:
image: mysql
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: my-secret-pw
MYSQL_DATABASE: reva
go:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go environment
uses: actions/[email protected]
with:
go-version-file: go.mod
- name: Test
run: make test-go
env:
COVER_PROFILE: ${{ github.event_name == 'push' && 'coverage.out' || '' }}
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
if: github.event_name == 'push'
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.out
force-coverage-parser: go
docker:
strategy:
fail-fast: false
matrix:
file: [docker/Dockerfile.reva, docker/Dockerfile.revad-eos, docker/Dockerfile.revad-ceph]
uses: ./.github/workflows/docker.yml
with:
file: ${{ matrix.file }}
docker-revad:
name: docker (docker/Dockerfile.revad)
uses: ./.github/workflows/docker.yml
with:
file: docker/Dockerfile.revad
load: true
litmus:
needs: docker-revad
strategy:
fail-fast: false
matrix:
test: [litmus-1, litmus-2, litmus-3]
uses: ./.github/workflows/compose.yml
with:
test: ${{ matrix.test }}
image: ${{ needs.docker-revad.outputs.image }}
acceptance-1:
needs: docker-revad
uses: ./.github/workflows/compose.yml
with:
test: acceptance-1
image: ${{ needs.docker-revad.outputs.image }}
submodules: true
acceptance-2:
needs: docker-revad
strategy:
fail-fast: false
matrix:
part: [1, 3, 4, 5, 6]
uses: ./.github/workflows/compose.yml
with:
test: acceptance-2
image: ${{ needs.docker-revad.outputs.image }}
submodules: true
parts: 6
part: ${{ matrix.part }}
acceptance-3:
needs: docker-revad
strategy:
fail-fast: false
matrix:
part: [9]
uses: ./.github/workflows/compose.yml
with:
test: acceptance-3
image: ${{ needs.docker-revad.outputs.image }}
submodules: true
parts: 12
part: ${{ matrix.part }}