File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments