Skip to content

Commit ded4ed2

Browse files
committed
Update project to use new shared script library
- Add telco5g-konflux as a submodule - Update tekton pipelines to rebuild on library change - Create a new makefile to call the library helpers for various Konflux maintenance tasks - Add rust targets to makefile to allow replicating the Github action locally - Update gitignore configuration - Run `make konflux-all` to update all tasks and fix formatting - Add yamllint to project and fix yamllint warnings
1 parent 9a76079 commit ded4ed2

File tree

18 files changed

+1559
-19856
lines changed

18 files changed

+1559
-19856
lines changed

.github/workflows/rust.yml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,20 @@
1+
---
12
name: Rust
23

3-
on:
4+
on: # yamllint disable-line rule:truthy
45
push:
5-
branches: [ "main" ]
6+
branches: ["main"]
67
pull_request:
7-
branches: [ "main" ]
8-
9-
env:
10-
CARGO_TERM_COLOR: always
8+
branches: ["main"]
119

1210
jobs:
1311
build:
1412

1513
runs-on: ubuntu-latest
1614

1715
steps:
18-
- uses: actions/checkout@v3
19-
- name: apt update
20-
run: sudo apt update
21-
- name: apt install
22-
run: sudo apt install -y protobuf-compiler
23-
- name: Formatting
24-
run: cargo fmt --check
25-
- name: Check
26-
run: cargo check
27-
- name: Clippy
28-
run: cargo clippy
29-
- name: Test
30-
run: cargo test
16+
- uses: actions/checkout@v4
17+
with:
18+
submodules: recursive
19+
- name: Run rust-ci job
20+
run: make rust-ci

.github/workflows/yamllint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Yamllint
3+
4+
on: # yamllint disable-line rule:truthy
5+
push:
6+
branches: ["main"]
7+
pull_request:
8+
branches: ["main"]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
submodules: recursive
19+
- name: Run yamllint
20+
run: make yamllint

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/backup/
33
/summary.yaml
44
/summary_redacted.yaml
5-
5+
bin/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
[submodule "etcddump"]
55
path = etcddump
66
url = https://github.com/omertuc/etcddump
7+
[submodule "telco5g-konflux"]
8+
path = telco5g-konflux
9+
url = https://github.com/openshift-kni/telco5g-konflux.git

0 commit comments

Comments
 (0)