generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 55
50 lines (40 loc) · 1.01 KB
/
integration.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
name: Integration Tests
on:
push:
branches:
- main
- test/**
pull_request:
branches:
- main
jobs:
end2endtest:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21.5
cache: true
- name: Install Mage
run: go install github.com/magefile/mage
- name: Start containers
run: docker-compose -f "build/docker-compose.yml" up -d --build ssi redis uni-resolver driver-did-ion
- name: End To End Test
run: mage integration
- name: Save Container Logs to Directory
if: failure()
run: |
docker logs ssi > log/ssi_logs.txt
docker cp ssi:/app/log .
- name: Upload Logs as Artifact
if: failure()
uses: actions/upload-artifact@v3
with:
name: logs
path: log/*
- name: Stop containers
if: always()
run: docker-compose -f "build/docker-compose.yml" down