Skip to content

Commit 9472f49

Browse files
committed
ci: rename some steps and jobs
1 parent e7c9050 commit 9472f49

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ permissions:
1919
actions: write
2020

2121
jobs:
22-
checks:
22+
ci:
2323
env:
2424
CARGO_TERM_COLOR: always
2525

26-
name: Apply code checks
26+
name: CI
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Checkout repository
@@ -50,10 +50,10 @@ jobs:
5050
path: ./target/
5151
key: rust-build-${{ runner.os }}-${{ hashFiles('Cargo.toml', 'Cargo.lock', 'rust-toolchain') }}
5252

53-
- name: Run checks (server)
53+
- name: Lint rust
5454
run: nix develop -c bash -c 'mkdir www/build && cargo clippy && cargo deny check --hide-inclusion-graph && cargo fmt --check'
5555

56-
- name: Run checks (website)
56+
- name: Lint web
5757
run: nix develop -c bash -c 'cd www && bun install --locked && bun run check'
5858

5959
- name: Run tests
@@ -96,10 +96,11 @@ jobs:
9696
path: ./target/
9797
key: rust-build-${{ runner.os }}-${{ hashFiles('Cargo.toml', 'Cargo.lock', 'rust-toolchain') }}
9898

99-
- name: Build binary
100-
run: |
101-
nix develop -c bash -c 'cd www && bun install --locked && bun run build'
102-
nix develop -c cargo build --locked --release --no-default-features ${CARGO_FEATURES:+--features "$CARGO_FEATURES"}
99+
- name: Build web
100+
run: nix develop -c bash -c 'cd www && bun install --locked && bun run build'
101+
102+
- name: Compile rust
103+
run: nix develop -c cargo build --locked --release --no-default-features ${CARGO_FEATURES:+--features "$CARGO_FEATURES"}
103104

104105
- name: Build docker image
105106
run: nix develop -c docker build -t ssh-portfolio --build-arg CARGO_FEATURES=$CARGO_FEATURES .

0 commit comments

Comments
 (0)