Skip to content

Commit

Permalink
ATR-2626 migrate away from actions-rs (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyGoldberg authored Aug 4, 2023
1 parent e0b4a45 commit 9f3f9c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 27 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/rust-build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,8 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
uses: dtolnay/rust-toolchain@stable
- name: Run build
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose
run: cargo build --verbose
- name: Run test
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose
run: cargo test --verbose
12 changes: 3 additions & 9 deletions .github/workflows/rust-format-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,10 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Install latest stable
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt, clippy
- name: Run rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --check
run: cargo fmt --check
- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
run: cargo clippy
9 changes: 2 additions & 7 deletions .github/workflows/rust-openapi-changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,11 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Install latest stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
uses: dtolnay/rust-toolchain@stable
- name: Copy openapi.yaml
run: cp openapi.yaml openapi.yaml_bak
shell: bash
- name: Generate OpenAPI specification
uses: actions-rs/cargo@v1
with:
command: run
args: --bin gen-openapi --verbose
run: cargo run --bin gen-openapi --verbose
- name: Compare files
run: diff --side-by-side openapi.yaml openapi.yaml_bak

0 comments on commit 9f3f9c7

Please sign in to comment.