-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (40 loc) · 1.12 KB
/
ci.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
name: Continous Integration Tests
on: [push, pull_request]
jobs:
tailor:
name: Run tests
runs-on: ubuntu-latest
steps:
-
name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Setup Go
uses: actions/setup-go@v2
with:
version: 1.14
-
name: Download Go tools
run: |
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.25.0
go get golang.org/x/tools/cmd/goimports
-
name: Run lint
run: |
export PATH=$PATH:$(go env GOPATH)/bin
make lint
-
name: Setup OpenShift
uses: manusa/[email protected]
with:
oc version: 'v3.11.0'
enable: 'centos-imagestreams,persistent-volumes,registry,router'
github token: ${{ secrets.GITHUB_TOKEN }}
-
name: Run tests
run: |
export PATH=$PATH:$(go env GOPATH)/bin
sudo chown -R runner:docker openshift.local.clusterup/
make test