-
Notifications
You must be signed in to change notification settings - Fork 48
55 lines (45 loc) · 1.37 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
name: Tests
run-name: Run tests by @${{ github.actor }}
on:
push:
branches:
- main
pull_request:
jobs:
unit-and-integration:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ">=1.21.0"
- name: Run unit tests
run: make test-unit
- name: Run integration tests
run: make test-integration
e2e:
strategy:
matrix:
replicas: ["1", "3"]
runs-on: ubuntu-latest
name: E2E kind tests Lingo.replicas=${{ matrix.replicas }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install kind
run: |
# For AMD64 / x86_64
[ $(uname -m) = x86_64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-amd64
# For ARM64
[ $(uname -m) = aarch64 ] && curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.20.0/kind-linux-arm64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Install skaffold
run: |
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64
chmod +x skaffold
sudo mv skaffold /usr/local/bin
- name: Run e2e tests
run: REPLICAS=${{ matrix.replicas }} make test-e2e