forked from devfile/registry-support
-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (57 loc) · 1.72 KB
/
ci.yaml
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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
go:
name: Check go tools build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup Go environment
uses: actions/setup-go@v2
with:
go-version: 1.13
- name: Check if index-generator build is working
run: cd index/generator && ./build.sh
- name: Test index-generator
run: cd index/generator && go test ./...
- name: Check if registry-library build is working
run: cd registry-library && ./build.sh
docker:
name: Check docker builds
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Check if index server build is working
run: cd index/server && ./build.sh
- name: Test index server
run: cd index/server && go test ./...
- name: Check if oci server build is working
run: cd oci-registry && ./build.sh
- name: Check if devfile-registry-integration build is working
run: cd tests/integration && ./docker-build.sh
test_minikube:
name: Test Devfile Registry
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Go environment
uses: actions/setup-go@v2
with:
go-version: 1.13
- name: Setup Minikube
uses: manusa/actions-setup-minikube@v2.4.2
with:
minikube version: 'v1.21.0'
kubernetes version: 'v1.21.0'
driver: 'docker'
github token: ${{ secrets.GITHUB_TOKEN }}
start args: '--addons=ingress'
- name: Run the devfile registry integration tests
run: .ci/run_tests_minikube_linux.sh