-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (38 loc) · 1.18 KB
/
e2e-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
name: End-to-End Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
e2e-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go environment
uses: actions/setup-go@v4
with:
go-version: '1.23.1'
- name: Install dependencies
run: |
cd api
go mod download
- name: Install Docker Compose
run: |
sudo curl -L "https://github.com/docker/compose/releases/download/v2.21.0/docker-compose-linux-x86_64" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
- name: Set up Docker Compose
run: |
docker-compose -f ./docker-compose.yaml up -d
- name: Install Venom
run: |
curl https://github.com/ovh/venom/releases/download/v1.1.0/venom.linux-amd64 -L -o /usr/local/bin/venom && chmod +x /usr/local/bin/venom
- name: Run Venom tests
run: |
venom run api/end-to-end_tests/*.yaml
- name: Tear down
run: |
docker-compose -f ./docker-compose.yaml down --volumes