-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gustavo Inacio <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,27 +3,27 @@ name: tests | |
|
||
on: | ||
push: | ||
branches: [ main ] | ||
branches: [main] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
fmt: | ||
name: cargo fmt | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rust:1.74-bookworm | ||
container: | ||
image: rust:1.79-bookworm | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: | | ||
rustup component add rustfmt | ||
cargo fmt --all -- --check | ||
clippy: | ||
name: cargo clippy | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rust:1.74-bookworm | ||
container: | ||
image: rust:1.79-bookworm | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
|
@@ -36,9 +36,9 @@ jobs: | |
target/ | ||
key: ${{ runner.os }}-cargo-clippy | ||
- run: | | ||
rustup component add clippy | ||
cargo clippy --all-targets --all-features -- -D warnings | ||
rustup component add clippy | ||
cargo clippy --all-targets --all-features -- -D warnings | ||
test-and-coverage: | ||
name: cargo test and coverage | ||
runs-on: ubuntu-latest | ||
|
@@ -47,7 +47,7 @@ jobs: | |
pull-requests: write | ||
actions: read | ||
container: | ||
image: rust:1.74-bookworm | ||
image: rust:1.79-bookworm | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
|
@@ -62,7 +62,7 @@ jobs: | |
- name: Install cargo-llvm-cov | ||
uses: taiki-e/install-action@cargo-llvm-cov | ||
- name: Run tests and generate coverage report | ||
run: cargo llvm-cov test --all-features --workspace --lcov --output-path lcov.info | ||
run: cargo llvm-cov test --all-features --workspace --lcov --output-path lcov.info | ||
- name: Upload coverage to Coveralls | ||
uses: coverallsapp/[email protected] | ||
with: | ||
|
@@ -72,7 +72,7 @@ jobs: | |
name: cargo test docs | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rust:1.74-bookworm | ||
image: rust:1.79-bookworm | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM rust:1.74-bookworm as build | ||
FROM rust:1.79-bookworm as build | ||
|
||
WORKDIR /root | ||
COPY . . | ||
|