-
Notifications
You must be signed in to change notification settings - Fork 36
79 lines (79 loc) · 2.48 KB
/
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
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
on:
push:
tags:
- v*
branches:
- master
pull_request:
merge_group:
name: Test
permissions:
contents: read
jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - name: Install Go
# uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0
# with:
# go-version: 1.20.x
# - name: Checkout code
# uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
# - uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2
# with:
# path: |
# ~/go/pkg/mod
# ~/.cache/go-build
# .bin
# key: cache-${{ hashFiles('**/go.sum') }}-${{ hashFiles('.bin/*') }}
# restore-keys: |
# cache-
# - run: make build
# - run: cd test && make build
# - run: make compress-build
# - uses: actions/upload-artifact@v3
# with:
# name: bin
# path: |
# .bin/canary-checker
# .bin/canary-checker.test
test:
strategy:
fail-fast: false
matrix:
suite:
- { name: minimal --skip-all, on: ubuntu-latest }
- { name: k8s, on: ubuntu-latest }
- { name: datasources, on: ubuntu-latest }
- { name: opensearch, on: ubuntu-latest }
# - { name: elasticsearch, on: ubuntu-latest }
- { name: git, on: ubuntu-latest }
# - restic
runs-on: ${{ matrix.suite.on }}
steps:
- name: Install Go
uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0
with:
go-version: 1.20.x
- name: Checkout code
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # v2
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: cache-${{ hashFiles('**/go.sum') }}
restore-keys: |
cache-
- run: make bin
- name: Test
env:
KUBERNETES_VERSION: v1.20.7
GH_TOKEN: ${{ secrets.CHECKRUNS_TOKEN }}
run: ./test/e2e.sh fixtures/${{matrix.suite.name}}
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@b9f6c61d965bcaa18acc02d6daf706373a448f02 # v1.40
if: always() && github.event.repository.fork == 'false'
with:
files: test/test-results.xml
check_name: E2E - ${{matrix.suite.name}}