Skip to content

Commit cfaf0d7

Browse files
Feature/data plane v0 ci workflow (#19)
* ci: add automated validation workflow * ci: sync go version and replace stale rust action * ci: fix rustup component installation syntax
1 parent 9d38a0b commit cfaf0d7

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v5
17+
with:
18+
go-version-file: schedune-control-plane/go.mod
19+
cache-dependency-path: schedune-control-plane/go.sum
20+
21+
- name: Set up Rust
22+
run: |
23+
rustup toolchain install stable --profile minimal --component clippy --component rustfmt
24+
rustup default stable
25+
26+
- name: Set up Python
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version: '3.x'
30+
31+
- name: Check Formatting
32+
run: |
33+
cd schedune-agent && cargo fmt -- --check
34+
cd ../schedune-control-plane && if [ -n "$(gofmt -l .)" ]; then echo "Go code is not formatted"; exit 1; fi
35+
36+
- name: Run Linters
37+
run: make lint
38+
39+
- name: Run Unit Tests
40+
run: make test
41+
42+
- name: Run Smoke Test
43+
run: make smoke-test

0 commit comments

Comments
 (0)