Skip to content

Commit 715354c

Browse files
committed
chore(ci): github workflows
Signed-off-by: Dario Tranchitella <dario@tranchitella.eu>
1 parent 98d006a commit 715354c

4 files changed

Lines changed: 79 additions & 5 deletions

File tree

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: gomod
4+
directory: /
5+
schedule:
6+
interval: daily
7+
rebase-strategy: disabled
8+
commit-message:
9+
prefix: "feat(deps)"
10+
- package-ecosystem: github-actions
11+
directory: /
12+
schedule:
13+
interval: daily
14+
rebase-strategy: disabled
15+
commit-message:
16+
prefix: "chore(ci)"

.github/workflows/ci.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "*" ]
6+
pull_request:
7+
branches: [ "*" ]
8+
9+
jobs:
10+
diff:
11+
name: diff
12+
runs-on: ubuntu-22.04
13+
steps:
14+
- uses: actions/checkout@v5
15+
with:
16+
fetch-depth: 0
17+
- uses: actions/setup-go@v6
18+
with:
19+
go-version-file: go.mod
20+
- run: make proto
21+
- name: Checking if generated protobuffer files are not aligned
22+
run: if [[ $(git diff | wc -l) -gt 0 ]]; then echo ">>> Untracked generated files have not been committed" && git --no-pager diff && exit 1; fi
23+
- name: Checking if missing untracked files for generated protobuf
24+
run: test -z "$(git ls-files --others --exclude-standard 2> /dev/null)"
25+
golangci:
26+
name: lint
27+
runs-on: ubuntu-22.04
28+
steps:
29+
- uses: actions/checkout@v5
30+
- uses: actions/setup-go@v6
31+
with:
32+
go-version-file: go.mod
33+
- name: Run golangci-lint
34+
run: make lint

.github/workflows/latest.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Container image build
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
ko:
13+
runs-on: ubuntu-22.04
14+
steps:
15+
- uses: actions/checkout@v5
16+
with:
17+
fetch-depth: 0
18+
- uses: actions/setup-go@v6
19+
with:
20+
go-version-file: go.mod
21+
- name: "ko: install"
22+
run: make ko
23+
- name: "ko: build and push latest tag"
24+
run: make VERSION=latest KO_LOCAL=false KO_PUSH=true oci-build

pkg/proto/security.pb.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)