-
-
Notifications
You must be signed in to change notification settings - Fork 88
61 lines (53 loc) · 1.38 KB
/
Copy pathweb.yml
File metadata and controls
61 lines (53 loc) · 1.38 KB
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
name: Docker Web Integration
on:
push:
branches:
- develop
- main
paths:
- '.github/workflows/web.yml'
- 'docker/**'
- 'go/**'
- 'proto/**'
pull_request:
branches:
- develop
- main
types:
- opened
- synchronize
- reopened
paths:
- '.github/workflows/web.yml'
- 'docker/**'
- 'go/**'
- 'proto/**'
permissions:
contents: read
jobs:
integration:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docker
steps:
- uses: actions/checkout@v7
- name: Set Docker bind-mount identity
run: |
echo "PISCSI_DOCKER_UID=$(id -u)" >> "$GITHUB_ENV"
echo "PISCSI_DOCKER_GID=$(id -g)" >> "$GITHUB_ENV"
- name: Build and launch the web stack
run: docker compose -f docker-compose.ci.yml up --build --detach
- name: Run Go web tests
run: docker compose -f docker-compose.ci.yml run --rm go-test
- name: Output container logs
if: success() || failure()
run: |
docker compose -f docker-compose.ci.yml logs web > web.log
docker compose -f docker-compose.ci.yml logs -t | sort -u -k 3 > combined.log
- name: Upload web log
if: success() || failure()
uses: actions/upload-artifact@v7
with:
name: web.log
path: docker/web.log