Skip to content

Commit 6f43ca7

Browse files
committed
re-split gha workflows
1 parent 1bbead5 commit 6f43ca7

File tree

8 files changed

+84
-31
lines changed

8 files changed

+84
-31
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -65,29 +65,10 @@ jobs:
6565
toolchain: nightly-2024-07-05
6666
components: rustfmt,clippy
6767

68-
- name: Print Rust toolchain default versions
69-
working-directory: crates
70-
run: |
71-
echo "rustup show:"
72-
rustup show
73-
echo "rustc version:"
74-
rustc --version
75-
echo "cargo version:"
76-
cargo -V
77-
echo "glibc version"
78-
ldd --version
79-
80-
- name: Check fmt (nightly)
81-
working-directory: crates
82-
run: cargo +nightly-2024-07-05 fmt --check --all
83-
84-
- name: Check clippy
85-
working-directory: crates
86-
run: cargo clippy --release --tests --no-deps -- -D clippy::all
87-
8868
- name: Build all (including tests, benches, examples)
8969
working-directory: crates/node
9070
run: |
71+
# TODO make building the bundle.car a dependency
9172
make $PWD/builtin-actors/output/bundle.car
9273
cargo build --locked --release --all-targets
9374

.github/workflows/ci.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@ on:
2323

2424

2525
jobs:
26-
commonmark:
27-
uses: ./.github/workflows/commonmark-lint.yaml
28-
29-
license:
30-
uses: ./.github/workflows/license.yaml
31-
32-
contracts-prettier:
33-
uses: ./.github/workflows/contracts-prettier.yaml
34-
3526
contracts-deployment-test:
3627
uses: ./.github/workflows/contracts-deployment-test.yaml
3728
needs: [contracts-prettier]

.github/workflows/demos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ env:
77
FOUNDRY_PROFILE: ci
88

99
jobs:
10-
examples-axelar-token:
10+
demo-axelar-token:
1111
name: "Demos: Axelar token"
1212
runs-on: ubuntu-latest
1313
strategy:
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Code Quality
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
# Pattern matched against refs/tags
8+
tags:
9+
# Push events to every git tag not containing /
10+
# NOTE: '**' would match tags with / in them, e.g. "foo/bar",
11+
# but we want to use the tag as a docker tag as well, so it's best avoided.
12+
- '*'
13+
14+
pull_request:
15+
branches:
16+
- '**'
17+
# To add ready_for_review as a trigger we need to list all the defaults.
18+
types:
19+
- opened
20+
- reopened
21+
- synchronize
22+
- ready_for_review
23+
24+
jobs:
25+
rust:
26+
name: Check Rust Code Quality
27+
runs-on: ubuntu-22.04
28+
env:
29+
RUST_BACKTRACE: full
30+
RUSTFLAGS: -Dwarnings
31+
32+
steps:
33+
- name: Print Rust toolchain default versions
34+
working-directory: crates
35+
run: |
36+
echo "rustup show:"
37+
rustup show
38+
echo "rustc version:"
39+
rustc --version
40+
echo "cargo version:"
41+
cargo -V
42+
echo "glibc version"
43+
ldd --version
44+
45+
- name: Check fmt (nightly)
46+
working-directory: crates
47+
run: cargo +nightly-2024-07-05 fmt --check --all
48+
49+
- name: Check clippy
50+
working-directory: crates
51+
run: cargo clippy --release --tests --no-deps -- -D clippy::all
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check out the project
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414

1515
# This is so `make license` doesn't say "bad revision origin/main"
1616
- name: Fetch origin for diff

.github/workflows/lints.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Lint PR title"
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
- reopened
10+
11+
permissions:
12+
pull-requests: read
13+
14+
jobs:
15+
license:
16+
uses: ./.github/workflows/lint-license.yaml
17+
18+
contracts-prettier:
19+
uses: ./.github/workflows/lint-contracts-prettier.yaml
20+
21+
conventional-commits:
22+
uses: ./.github/workflows/lint-convention-commits.yaml
23+
24+
commonmark:
25+
uses: ./.github/workflows/lint-commonmark.yaml
26+
27+
code-quality:
28+
uses: ./.github/workflows/lint-code-quality.yaml
29+
30+

0 commit comments

Comments
 (0)