Skip to content

Commit

Permalink
ci: run tests on all platforms (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoudham authored May 4, 2024
1 parent 7303828 commit 4338d56
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
File renamed without changes.
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test

on:
pull_request:
paths: ["**.rs", "**.toml", "**.lock"]
push:
branches: [main]
paths: ["**.rs", "**.toml", "**.lock"]

jobs:
rust:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable

- uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('./Cargo.lock') }}-test

- name: cargo test
run: cargo test --all-features

0 comments on commit 4338d56

Please sign in to comment.