Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ATR-2626 migrate away from actions-rs #22

Merged
merged 2 commits into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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