Skip to content

Commit

Permalink
bump github actions dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristramg committed Feb 29, 2024
1 parent 120757c commit 6846148
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 47 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ jobs:
name: Publish on crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
31 changes: 8 additions & 23 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
Expand All @@ -17,36 +17,21 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.toml') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
- uses: katyo/publish-crates@v2
- run: cargo test --all-features

lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
- uses: katyo/publish-crates@v2

- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
run: cargo clippy -- -D warnings
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ categories = ["data-structures"]

[dependencies]

gtfs-structures = "0.38.0"
gtfs-structures = "0.41.0"
geojson = "0.24.1"
clap = { version = "4.4.11", features = ["derive"] }
clap = { version = "4.5.1", features = ["derive"] }
geo-types = "0.7.12"
serde_json = "1"
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ mod test {
json!(given_feature.as_ref().unwrap().properties),
json!({
"code": "0001",
"description": "",
"description": null,
"id": "stop2",
"name": "StopPoint",
"wheelchair_boarding": "unknown"
Expand Down Expand Up @@ -107,7 +107,7 @@ mod test {
assert_eq!(
json!(given_feature.as_ref().unwrap().properties),
json!({
"description": "",
"description": null,
"id": "stop1",
"name": "Stop Area",
"wheelchair_boarding": "unknown"
Expand Down

0 comments on commit 6846148

Please sign in to comment.