-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.29 KB
/
integration-tests.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
name: Integration tests
on:
repository_dispatch:
types: [integration-test]
env:
GOPRIVATE: "github.com/emerishq,github.com/allinbits"
jobs:
tests:
name: Integration tests (${{ github.event.client_payload.env }})
runs-on: self-hosted
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Configure git for private modules
env:
GIT_TOKEN: ${{ secrets.TENDERBOT_GIT_TOKEN }}
run: git config --global url."https://git:${GIT_TOKEN}@github.com".insteadOf "https://github.com"
- name: Run tests
run: make ${{ github.event.client_payload.env }}-int-tests
env:
TESTS_WORKDIR: ${{ github.workspace }}
- name: Emit test-pass event on demeris-backend
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.TENDERBOT_GIT_TOKEN }}
repository: emerishq/demeris-backend
event-type: test-pass
client-payload: |
{
"env": "${{ github.event.client_payload.env }}",
"service_name": "${{ github.event.client_payload.service_name }}",
"image_tag": "${{ github.event.client_payload.image_tag }}"
}