|
1 |
| -name: Integration tests |
2 |
| -on: |
3 |
| - push: |
4 |
| - branches: |
5 |
| - - 'master' |
6 |
| - - 'release-*' |
7 |
| - pull_request: |
8 |
| - branches: |
9 |
| - - 'master' |
| 1 | +# name: Integration tests |
| 2 | +# on: |
| 3 | +# push: |
| 4 | +# branches: |
| 5 | +# - 'master' |
| 6 | +# - 'release-*' |
| 7 | +# pull_request: |
| 8 | +# branches: |
| 9 | +# - 'master' |
10 | 10 |
|
11 |
| -jobs: |
12 |
| - check-go: |
13 |
| - name: Ensure Go modules synchronicity |
14 |
| - runs-on: ubuntu-latest |
15 |
| - steps: |
16 |
| - - name: Checkout code |
17 |
| - uses: actions/checkout@v4 |
18 |
| - - name: Setup Golang |
19 |
| - uses: actions/setup-go@v5 |
20 |
| - with: |
21 |
| - go-version: '1.22' |
22 |
| - - name: Download all Go modules |
23 |
| - run: | |
24 |
| - go mod download |
25 |
| - - name: Check for tidyness of go.mod and go.sum |
26 |
| - run: | |
27 |
| - go mod tidy |
28 |
| - git diff --exit-code -- . |
29 |
| - codegen: |
30 |
| - name: Run codegen |
31 |
| - runs-on: ubuntu-latest |
32 |
| - steps: |
33 |
| - - name: Checkout code |
34 |
| - uses: actions/checkout@v4 |
35 |
| - - name: Install Kustomize v2 |
36 |
| - run: | |
37 |
| - set -xo pipefail |
38 |
| - URL="https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.1.0/kustomize_v5.1.0_linux_amd64.tar.gz" |
39 |
| - BINNAME=kustomize |
40 |
| - curl -sLf --retry 3 -o /tmp/kustomize.tar.gz "$URL" |
41 |
| - chksum=$(sha256sum /tmp/kustomize.tar.gz | awk '{ print $1; }') |
42 |
| - if test "${chksum}" != "52f4cf1ba34d38fd55a9bef819e329c9a4561f5f57f8f539346038ab5026dda8"; then |
43 |
| - echo "Checksum mismatch" >&2 |
44 |
| - exit 1 |
45 |
| - fi |
46 |
| - tar -C /tmp -xvzf /tmp/kustomize.tar.gz |
47 |
| - sudo mv /tmp/kustomize /usr/local/bin/kustomize |
48 |
| - chmod +x /usr/local/bin/kustomize |
49 |
| - - name: Run make manifests |
50 |
| - run: | |
51 |
| - make manifests |
52 |
| - - name: Check nothing has changed |
53 |
| - run: | |
54 |
| - set -xo pipefail |
55 |
| - git diff --exit-code -- . ':!go.sum' ':!go.mod' ':!assets/swagger.json' | tee codegen.patch |
56 |
| - lint: |
57 |
| - name: Ensure code is correctly linted |
58 |
| - runs-on: ubuntu-latest |
59 |
| - steps: |
60 |
| - - name: Checkout code |
61 |
| - uses: actions/checkout@v4 |
62 |
| - - name: Setup Golang |
63 |
| - uses: actions/setup-go@v5 |
64 |
| - with: |
65 |
| - go-version: '1.22' |
66 |
| - cache: false |
67 |
| - env: |
68 |
| - GO111MODULE: off |
69 |
| - - name: Run golangci-lint |
70 |
| - uses: golangci/golangci-lint-action@v6 |
71 |
| - with: |
72 |
| - version: v1.57.2 |
73 |
| - args: --timeout 5m |
74 |
| - test: |
75 |
| - name: Ensure unit tests are passing |
76 |
| - runs-on: ubuntu-latest |
77 |
| - steps: |
78 |
| - - name: Checkout code |
79 |
| - uses: actions/checkout@v4 |
80 |
| - - name: Setup Golang |
81 |
| - uses: actions/setup-go@v5 |
82 |
| - with: |
83 |
| - go-version: '1.22' |
84 |
| - - name: Run tests |
85 |
| - env: |
86 |
| - GNUPG_DISABLED: true |
87 |
| - run: | |
88 |
| - make test |
89 |
| - - name: Upload code coverage information to codecov.io |
90 |
| - uses: codecov/codecov-action@v4 |
91 |
| - with: |
92 |
| - token: ${{ secrets.CODECOV_TOKEN }} |
93 |
| - file: coverage.out |
| 11 | +# jobs: |
| 12 | +# check-go: |
| 13 | +# name: Ensure Go modules synchronicity |
| 14 | +# runs-on: ubuntu-latest |
| 15 | +# steps: |
| 16 | +# - name: Checkout code |
| 17 | +# uses: actions/checkout@v4 |
| 18 | +# - name: Setup Golang |
| 19 | +# uses: actions/setup-go@v5 |
| 20 | +# with: |
| 21 | +# go-version: '1.22' |
| 22 | +# - name: Download all Go modules |
| 23 | +# run: | |
| 24 | +# go mod download |
| 25 | +# - name: Check for tidyness of go.mod and go.sum |
| 26 | +# run: | |
| 27 | +# go mod tidy |
| 28 | +# git diff --exit-code -- . |
| 29 | +# codegen: |
| 30 | +# name: Run codegen |
| 31 | +# runs-on: ubuntu-latest |
| 32 | +# steps: |
| 33 | +# - name: Checkout code |
| 34 | +# uses: actions/checkout@v4 |
| 35 | +# - name: Install Kustomize v2 |
| 36 | +# run: | |
| 37 | +# set -xo pipefail |
| 38 | +# URL="https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.1.0/kustomize_v5.1.0_linux_amd64.tar.gz" |
| 39 | +# BINNAME=kustomize |
| 40 | +# curl -sLf --retry 3 -o /tmp/kustomize.tar.gz "$URL" |
| 41 | +# chksum=$(sha256sum /tmp/kustomize.tar.gz | awk '{ print $1; }') |
| 42 | +# if test "${chksum}" != "52f4cf1ba34d38fd55a9bef819e329c9a4561f5f57f8f539346038ab5026dda8"; then |
| 43 | +# echo "Checksum mismatch" >&2 |
| 44 | +# exit 1 |
| 45 | +# fi |
| 46 | +# tar -C /tmp -xvzf /tmp/kustomize.tar.gz |
| 47 | +# sudo mv /tmp/kustomize /usr/local/bin/kustomize |
| 48 | +# chmod +x /usr/local/bin/kustomize |
| 49 | +# - name: Run make manifests |
| 50 | +# run: | |
| 51 | +# make manifests |
| 52 | +# - name: Check nothing has changed |
| 53 | +# run: | |
| 54 | +# set -xo pipefail |
| 55 | +# git diff --exit-code -- . ':!go.sum' ':!go.mod' ':!assets/swagger.json' | tee codegen.patch |
| 56 | +# lint: |
| 57 | +# name: Ensure code is correctly linted |
| 58 | +# runs-on: ubuntu-latest |
| 59 | +# steps: |
| 60 | +# - name: Checkout code |
| 61 | +# uses: actions/checkout@v4 |
| 62 | +# - name: Setup Golang |
| 63 | +# uses: actions/setup-go@v5 |
| 64 | +# with: |
| 65 | +# go-version: '1.22' |
| 66 | +# cache: false |
| 67 | +# env: |
| 68 | +# GO111MODULE: off |
| 69 | +# - name: Run golangci-lint |
| 70 | +# uses: golangci/golangci-lint-action@v6 |
| 71 | +# with: |
| 72 | +# version: v1.57.2 |
| 73 | +# args: --timeout 5m |
| 74 | +# test: |
| 75 | +# name: Ensure unit tests are passing |
| 76 | +# runs-on: ubuntu-latest |
| 77 | +# steps: |
| 78 | +# - name: Checkout code |
| 79 | +# uses: actions/checkout@v4 |
| 80 | +# - name: Setup Golang |
| 81 | +# uses: actions/setup-go@v5 |
| 82 | +# with: |
| 83 | +# go-version: '1.22' |
| 84 | +# - name: Run tests |
| 85 | +# env: |
| 86 | +# GNUPG_DISABLED: true |
| 87 | +# run: | |
| 88 | +# make test |
| 89 | +# - name: Upload code coverage information to codecov.io |
| 90 | +# uses: codecov/codecov-action@v4 |
| 91 | +# with: |
| 92 | +# token: ${{ secrets.CODECOV_TOKEN }} |
| 93 | +# file: coverage.out |
94 | 94 |
|
95 |
| - test-manifests: |
96 |
| - name: Ensure kubernetes manifests conform to their schema |
97 |
| - runs-on: ubuntu-latest |
98 |
| - steps: |
99 |
| - - name: Checkout code |
100 |
| - uses: actions/checkout@v4 |
101 |
| - - name: Install Kubeconform |
102 |
| - run: | |
103 |
| - set -xo pipefail |
| 95 | +# test-manifests: |
| 96 | +# name: Ensure kubernetes manifests conform to their schema |
| 97 | +# runs-on: ubuntu-latest |
| 98 | +# steps: |
| 99 | +# - name: Checkout code |
| 100 | +# uses: actions/checkout@v4 |
| 101 | +# - name: Install Kubeconform |
| 102 | +# run: | |
| 103 | +# set -xo pipefail |
104 | 104 |
|
105 |
| - curl -sLf --retry 3 \ |
106 |
| - -o /tmp/kubeconform.tar.gz \ |
107 |
| - "https://github.com/yannh/kubeconform/releases/download/v0.6.6/kubeconform-linux-amd64.tar.gz" |
108 |
| - chksum=$(sha256sum /tmp/kubeconform.tar.gz | awk '{ print $1; }') |
109 |
| - if test "${chksum}" != "2ff56999a6ed9e96fe5ab9ee52271f2db5335baf7f17789035b9561970cdd3eb"; then |
110 |
| - echo "Checksum mismatch" >&2 |
111 |
| - exit 1 |
112 |
| - fi |
| 105 | +# curl -sLf --retry 3 \ |
| 106 | +# -o /tmp/kubeconform.tar.gz \ |
| 107 | +# "https://github.com/yannh/kubeconform/releases/download/v0.6.6/kubeconform-linux-amd64.tar.gz" |
| 108 | +# chksum=$(sha256sum /tmp/kubeconform.tar.gz | awk '{ print $1; }') |
| 109 | +# if test "${chksum}" != "2ff56999a6ed9e96fe5ab9ee52271f2db5335baf7f17789035b9561970cdd3eb"; then |
| 110 | +# echo "Checksum mismatch" >&2 |
| 111 | +# exit 1 |
| 112 | +# fi |
113 | 113 |
|
114 |
| - tar -C /tmp -xvzf /tmp/kubeconform.tar.gz |
115 |
| - sudo mv /tmp/kubeconform /usr/local/bin/kubeconform |
116 |
| - chmod +x /usr/local/bin/kubeconform |
117 |
| - - name: Run manifest tests |
118 |
| - run: | |
119 |
| - make test-manifests |
| 114 | +# tar -C /tmp -xvzf /tmp/kubeconform.tar.gz |
| 115 | +# sudo mv /tmp/kubeconform /usr/local/bin/kubeconform |
| 116 | +# chmod +x /usr/local/bin/kubeconform |
| 117 | +# - name: Run manifest tests |
| 118 | +# run: | |
| 119 | +# make test-manifests |
0 commit comments