-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (38 loc) · 1.1 KB
/
ci.yml
File metadata and controls
38 lines (38 loc) · 1.1 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
name: Continous Integration Tests
on: [push, pull_request]
jobs:
tailor:
name: Run tests
runs-on: ubuntu-latest
steps:
-
name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21
-
name: Download Go tools
run: |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.2
go install golang.org/x/tools/cmd/goimports@latest
echo "PATH=$PATH:$(go env GOPATH)/bin" >> $GITHUB_ENV
-
name: Run lint
run: |
make lint
-
name: Download OpenShift client
run: |
mkdir -p ~/oc
cd ~/oc
curl -L https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz -o oc.tar.gz
tar -xzf oc.tar.gz
echo "$HOME/oc" >> $GITHUB_PATH
-
name: Run Unit tests (cannot run openshift tests due to requiring Github runner with ubuntu 20.04)
run: make test-unit