File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,19 +17,44 @@ concurrency:
1717 cancel-in-progress : " ${{ !contains(github.ref, 'main')}}"
1818
1919jobs :
20- ci :
20+ validate-changesets :
21+ uses : ./.github/workflows/validate_changesets.yaml
22+
23+ build :
24+ name : " cargo build"
2125 runs-on : ubuntu-latest
2226 steps :
2327 - uses : actions/checkout@v4
24- - name : " Login to Docker Hub"
25- uses : docker/login-action@v3
26- with :
27- username : ${{ secrets.CI_DOCKERHUB_USERNAME }}
28- password : ${{ secrets.CI_DOCKERHUB_TOKEN }}
29- - run : rustup component add clippy rustfmt
28+ - run : cargo build --verbose
29+
30+ test :
31+ name : " cargo test"
32+ runs-on : ubuntu-latest
33+ steps :
34+ - uses : actions/checkout@v4
35+ - run : cargo test --verbose
36+
37+ clippy :
38+ name : " Rust clippy"
39+ runs-on : ubuntu-latest
40+ steps :
41+ - uses : actions/checkout@v4
42+ - run : rustup component add clippy
3043 - run : cargo clippy --verbose --tests --all-targets --all-features -- -D warnings
44+
45+ formatter :
46+ name : " Rust formatter"
47+ runs-on : ubuntu-latest
48+ steps :
49+ - uses : actions/checkout@v4
50+ - run : rustup component add rustfmt
3151 - run : cargo fmt --check --verbose
32- - run : cargo test --verbose
52+
53+ helm :
54+ name : " Helm checks"
55+ runs-on : ubuntu-latest
56+ steps :
57+ - uses : actions/checkout@v4
3358 - name : " Install Helm"
3459 uses : azure/setup-helm@v4
3560 with :
Original file line number Diff line number Diff line change 1010 PUBLISH_GIT_SIGN_KEY_PATH : " /home/runner/.ssh/sign_key"
1111
1212jobs :
13+ validate-changesets :
14+ uses : ./.github/workflows/validate_changesets.yaml
15+
1316 publish :
1417 name : " Publish the release"
18+ needs : [validate-changesets]
1519 runs-on : ubuntu-22.04
1620 steps :
1721 - name : " Checkout the project"
Original file line number Diff line number Diff line change 1+ name : Validate changesets
2+
3+ on :
4+ workflow_call :
5+
6+ jobs :
7+ validate-changesets :
8+ name : Validate changesets
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout project
12+ uses : actions/checkout@v4
13+ - name : Checkout Mono
14+ uses : actions/checkout@v4
15+ with :
16+ repository : appsignal/mono
17+ path : tmp/mono
18+ - name : Install Ruby
19+ uses : ruby/setup-ruby@v1
20+ with :
21+ ruby-version : ' 3.3'
22+ - name : Validate changesets
23+ run : tmp/mono/bin/mono changeset validate
You can’t perform that action at this time.
0 commit comments