Skip to content

Commit

Permalink
Add job to run tests (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
GitGhillie authored Apr 5, 2024
1 parent fcef25d commit bd2e5ed
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,30 @@ on:
push:

jobs:
# test:
# strategy:
# matrix:
# os: [windows-latest, ubuntu-latest, macos-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v3
# - uses: actions/cache@v3
# with:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# target/
# key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.toml') }}
# - uses: dtolnay/rust-toolchain@master
# with:
# toolchain: stable
# - name: Install alsa and udev
# run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
# if: runner.os == 'linux'
# - name: Build & run tests
# run: cargo test
test:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.toml') }}
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
if: runner.os == 'linux'
- name: Build & run tests
run: cargo test
lint:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit bd2e5ed

Please sign in to comment.