Skip to content

Commit

Permalink
Move clippy/fmt/deny checks to github
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Mar 1, 2024
1 parent 6ee6307 commit 4f47d1a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 13 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,25 @@ concurrency:
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: "clippy, rustfmt"
- uses: Swatinem/rust-cache@v2

# make sure all code has been formatted with rustfmt and linted with clippy
- name: rustfmt
run: cargo fmt -- --check --color always

# run clippy to verify we have no warnings
- run: cargo fetch
- name: cargo clippy
run: cargo clippy --all-targets --all-features -- -D warnings

validate-proto-bufs:
name: Validate proto bufs
runs-on: ubuntu-22.04
Expand All @@ -53,3 +72,10 @@ jobs:
- uses: Swatinem/rust-cache@v2
- run: cargo fetch
- run: cargo build

deny-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: deny check
uses: EmbarkStudios/cargo-deny-action@v1
13 changes: 0 additions & 13 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,34 +38,21 @@ steps:
id: test-quilkin
waitFor:
- fetch-quilkin
- name: us-docker.pkg.dev/$PROJECT_ID/ci/make-docker
dir: ./build
args:
- check-quilkin
id: check-quilkin
waitFor:
- fetch-quilkin
- name: us-docker.pkg.dev/$PROJECT_ID/ci/make-docker
dir: ./build
args:
- test-examples
id: test-examples
waitFor:
- fetch-quilkin
- name: us-docker.pkg.dev/$PROJECT_ID/ci/make-docker
dir: ./build
args:
- test-docs
id: test-docs
waitFor:
- fetch-quilkin
- name: us-docker.pkg.dev/$PROJECT_ID/ci/make-docker
dir: ./build
args:
- build-image
id: build
waitFor:
- fetch-quilkin

#
# Run the built images for 5 seconds in a few standard configurations, to test basic common scenarios
Expand Down

0 comments on commit 4f47d1a

Please sign in to comment.