Skip to content

Commit

Permalink
Merge pull request #207 from sanders41/ci-tests
Browse files Browse the repository at this point in the history
Test on all platforms
  • Loading branch information
sanders41 committed Mar 1, 2024
2 parents 82cf4ec + 009591c commit ad5e73c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 39 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/publish-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ jobs:
artifact_name: github-status
asset_name: github-status-generator-macos-aarch64
target: aarch64-apple-darwin
- os: windows-latest
artifact_name: checksum
asset_name: file-checksum-windows-amd64.exe
target: x86_64-pc-windows-gnu
steps:
- uses: actions/checkout@v4
- name: Install Rust
Expand Down
74 changes: 39 additions & 35 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Testing
on:
push:
branches:
- main
- main
pull_request:
env:
CARGO_TERM_COLOR: always
Expand All @@ -14,44 +14,48 @@ jobs:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- name: Cache dependencies
uses: Swatinem/rust-cache@v2.7.3
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- --deny warnings
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy
- name: Cache dependencies
uses: Swatinem/rust-cache@v2.7.3
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets -- --deny warnings
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- name: Cache dependencies
uses: Swatinem/rust-cache@v2.7.3
- name: Run cargo fmt
run: cargo fmt --all -- --check
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- name: Cache dependencies
uses: Swatinem/rust-cache@v2.7.3
- name: Run cargo fmt
run: cargo fmt --all -- --check
test:
name: Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Cache dependencies
uses: Swatinem/rust-cache@v2.7.3
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --locked
- uses: actions/checkout@v4
- name: Cache dependencies
uses: Swatinem/rust-cache@v2.7.3
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --locked

0 comments on commit ad5e73c

Please sign in to comment.