This repository was archived by the owner on Jul 19, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 84
52 lines (44 loc) · 1.41 KB
/
test.yml
File metadata and controls
52 lines (44 loc) · 1.41 KB
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
name: Tests
on:
pull_request: {}
workflow_dispatch:
jobs:
test:
name: Run tests
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Checkout code
uses: actions/checkout@v2
- name: Install kubectl
run: |
VERSION=$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)
curl -LO https://storage.googleapis.com/kubernetes-release/release/${VERSION}/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
- name: Setup cluster
run: |
make cluster-setup
- name: Run unit tests
run: |
make ci-test
# - name: Build images
# env:
# PUSH_TOKEN: ${{ secrets.PUSH_TOKEN }}
# run: |
# echo ${PUSH_TOKEN} | \
# docker login -u ksyncrobot --password-stdin
# make docker-binary docker-build docker-push
# - name: Run radar
# run: |
# make build-cmd
# bin/ksync init || true
# kubectl -n kube-system get all
# NAME=$(kubectl -n kube-system get po -lapp=ksync -oname)
# kubectl -n kube-system describe ${NAME}
# for n in ksync syncthing; do
# kubectl -n kube-system logs ${NAME} -c ${n}
# done
# kubectl -n kube-system wait --for=condition=Ready pod -lapp=ksync --timeout=1s