Skip to content

Commit b97b523

Browse files
committed
feat(atcions): add create-release-draft action
1 parent d03af69 commit b97b523

File tree

2 files changed

+175
-175
lines changed

2 files changed

+175
-175
lines changed

.github/workflows/ci-tests.yaml

Lines changed: 115 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -1,119 +1,119 @@
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'
1010

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
9494

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
104104

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
113113

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

.github/workflows/codeql-analysis.yml

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,70 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
12-
name: "CodeQL"
1+
# # For most projects, this workflow file will not need changing; you simply need
2+
# # to commit it to your repository.
3+
# #
4+
# # You may wish to alter this file to override the set of languages analyzed,
5+
# # or to provide custom queries or build logic.
6+
# #
7+
# # ******** NOTE ********
8+
# # We have attempted to detect the languages in your repository. Please check
9+
# # the `language` matrix defined below to confirm you have the correct set of
10+
# # supported CodeQL languages.
11+
# #
12+
# name: "CodeQL"
1313

14-
on:
15-
push:
16-
branches: [ master ]
17-
pull_request:
18-
# The branches below must be a subset of the branches above
19-
branches: [ master ]
20-
schedule:
21-
- cron: '38 0 * * 5'
14+
# on:
15+
# push:
16+
# branches: [ master ]
17+
# pull_request:
18+
# # The branches below must be a subset of the branches above
19+
# branches: [ master ]
20+
# schedule:
21+
# - cron: '38 0 * * 5'
2222

23-
jobs:
24-
analyze:
25-
name: Analyze
26-
runs-on: ubuntu-latest
27-
permissions:
28-
actions: read
29-
contents: read
30-
security-events: write
23+
# jobs:
24+
# analyze:
25+
# name: Analyze
26+
# runs-on: ubuntu-latest
27+
# permissions:
28+
# actions: read
29+
# contents: read
30+
# security-events: write
3131

32-
strategy:
33-
fail-fast: false
34-
matrix:
35-
language: [ 'go' ]
36-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37-
# Learn more about CodeQL language support at https://git.io/codeql-language-support
32+
# strategy:
33+
# fail-fast: false
34+
# matrix:
35+
# language: [ 'go' ]
36+
# # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# # Learn more about CodeQL language support at https://git.io/codeql-language-support
3838

39-
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v4
39+
# steps:
40+
# - name: Checkout repository
41+
# uses: actions/checkout@v4
4242

43-
# Initializes the CodeQL tools for scanning.
44-
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
46-
with:
47-
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
43+
# # Initializes the CodeQL tools for scanning.
44+
# - name: Initialize CodeQL
45+
# uses: github/codeql-action/init@v2
46+
# with:
47+
# languages: ${{ matrix.language }}
48+
# # If you wish to specify custom queries, you can do so here or in a config file.
49+
# # By default, queries listed here will override any specified in a config file.
50+
# # Prefix the list here with "+" to use these queries and those in the config file.
51+
# # queries: ./path/to/local/query, your-org/your-repo/queries@main
5252

53-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54-
# If this step fails, then you should remove it and run the build manually (see below)
55-
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v2
53+
# # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# # If this step fails, then you should remove it and run the build manually (see below)
55+
# - name: Autobuild
56+
# uses: github/codeql-action/autobuild@v2
5757

58-
# ℹ️ Command-line programs to run using the OS shell.
59-
# 📚 https://git.io/JvXDl
58+
# # ℹ️ Command-line programs to run using the OS shell.
59+
# # 📚 https://git.io/JvXDl
6060

61-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62-
# and modify them (or add more) to build your code if your project
63-
# uses a compiled language
61+
# # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62+
# # and modify them (or add more) to build your code if your project
63+
# # uses a compiled language
6464

65-
#- run: |
66-
# make bootstrap
67-
# make release
65+
# #- run: |
66+
# # make bootstrap
67+
# # make release
6868

69-
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v2
69+
# - name: Perform CodeQL Analysis
70+
# uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)