ci: added basic workflows #2
@@ -27,7 +27,7 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: rust:1.89-bookworm
|
image: rust:1.89-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: https://gitea.com/https://gitea.com/actions/checkout@v4
|
||||||
- run: rustup component add rustfmt
|
- run: rustup component add rustfmt
|
||||||
- run: cargo fmt --check
|
- run: cargo fmt --check
|
||||||
|
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: rust:1.89-bookworm
|
image: rust:1.89-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: https://gitea.com/https://gitea.com/actions/checkout@v4
|
||||||
- run: rustup component add clippy
|
- run: rustup component add clippy
|
||||||
# Lint both feature sets independently
|
# Lint both feature sets independently
|
||||||
- name: Clippy (server)
|
- name: Clippy (server)
|
||||||
@@ -51,7 +51,7 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: rust:1.89-bookworm
|
image: rust:1.89-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: https://gitea.com/actions/checkout@v4
|
||||||
- run: cargo install cargo-audit
|
- run: cargo install cargo-audit
|
||||||
- run: cargo audit
|
- run: cargo audit
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: rust:1.89-bookworm
|
image: rust:1.89-bookworm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: https://gitea.com/actions/checkout@v4
|
||||||
- name: Run tests (server)
|
- name: Run tests (server)
|
||||||
run: cargo test --features server --no-default-features
|
run: cargo test --features server --no-default-features
|
||||||
- name: Run tests (web)
|
- name: Run tests (web)
|
||||||
@@ -83,7 +83,7 @@ jobs:
|
|||||||
github.event_name == 'push' &&
|
github.event_name == 'push' &&
|
||||||
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/'))
|
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/'))
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: https://gitea.com/actions/checkout@v4
|
||||||
|
|
||||||
- name: Determine image tag
|
- name: Determine image tag
|
||||||
id: tag
|
id: tag
|
||||||
|
|||||||
Reference in New Issue
Block a user