forked from gravitational/teleport
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.37 KB
/
e2e-tests.yaml
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
name: E2E Tests
run-name: E2E Tests
on:
# Only allow manual triggers
workflow_dispatch:
jobs:
build:
name: Build binaries
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
runs-on: ubuntu-latest
permissions:
contents: read
container:
image: ghcr.io/gravitational/teleport-buildbox-centos7:teleport14
env:
GOCACHE: /tmp/gocache
steps:
- name: Checkout Teleport
uses: actions/checkout@v3 # Cannot upgrade to v4 while this runs in centos:7 due to nodejs GLIBC incompatibility
- name: Prepare workspace
uses: ./.github/actions/prepare-workspace
- name: Run make
run: |
make binaries
- name: Upload binaries
uses: actions/upload-artifact@v3
with:
name: build
path: ${{ github.workspace }}/build/
retention-days: 1
test:
name: E2E Tests
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@master
with:
name: build
path: ${{ github.workspace }}/build/
- name: Chmod binaries
run: |
chmod +x build/teleport
chmod +x build/tctl
chmod +x build/tsh
- name: Build Images
run: |
make -C e2e build
- name: Run Tests
run: |
make test-e2e