Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jelder committed Jan 28, 2024
1 parent e3b80da commit 60b847d
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI

on:
push:

jobs:
check:
name: Format, Clippy
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
name: check
with:
command: check
args: --manifest-path usda_hardiness_zone/Cargo.toml
- uses: actions-rs/cargo@v1
name: fmt
with:
command: fmt
args: --manifest-path usda_hardiness_zone/Cargo.toml --all --check
- uses: actions-rs/cargo@v1
name: clippy
with:
command: clippy
args: --manifest-path usda_hardiness_zone/Cargo.toml
test:
name: Test
runs-on: ubuntu-22.04
needs: [ check ]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: test
- uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path usda_hardiness_zone/Cargo.toml --no-default-features

0 comments on commit 60b847d

Please sign in to comment.