-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (65 loc) · 1.94 KB
/
Copy pathe2e.yml
File metadata and controls
79 lines (65 loc) · 1.94 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: E2E Tests
on:
pull_request:
paths:
- 'cmd/**'
- 'pkg/**'
- 'tests/e2e/**'
- '.github/workflows/e2e.yml'
- 'docker-compose.yaml'
- 'Makefile'
- 'contracts/**'
- 'go.mod'
- 'go.sum'
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
repository-projects: read
jobs:
e2e:
name: E2E Tests
runs-on: ubuntu-22.04
steps:
- name: Configure git SSH to HTTPS rewrite
# canton-erc20 and ethereum-wayfinder submodules use SSH URLs (git@github.com:).
# actions/checkout cannot authenticate SSH URLs via its token: input, so we
# rewrite them to HTTPS globally before the recursive submodule checkout.
run: git config --global url."https://${{ secrets.GH_PAT }}@github.com/".insteadOf "git@github.com:"
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GH_PAT }}
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
cache: true
- name: Checkout canton-docker repository
uses: actions/checkout@v4
with:
repository: chainsafe/canton-docker
token: ${{ secrets.GH_PAT }}
path: canton-docker
- name: Build Canton Docker image
run: |
cd canton-docker
./build_contianer.sh
- name: Download dependencies
run: go mod download
- name: Install Daml SDK
run: |
curl -sSL https://get.daml.com/ | sh -s -- 3.4.8
echo "$HOME/.daml/bin" >> "$GITHUB_PATH"
- name: Build DAML contracts
run: make build-dars
- name: Generate CANTON_MASTER_KEY
run: echo "CANTON_MASTER_KEY=$(openssl rand -base64 32)" >> "$GITHUB_ENV"
- name: Run E2E tests
run: make test-e2e
- name: Stop devstack
if: always()
run: make devstack-down