just/.github/workflows/test.yaml
2022-11-02 17:57:38 -07:00

51 lines
911 B
YAML

name: Test
on:
pull_request:
branches:
- '*'
push:
branches:
- master
defaults:
run:
shell: bash
jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{matrix.os}}
env:
RUSTFLAGS: --deny warnings
steps:
- uses: actions/checkout@v2
- name: Remove Broken WSL bash executable
if: ${{ matrix.os == 'windows-latest' }}
shell: cmd
run: |
takeown /F C:\Windows\System32\bash.exe
icacls C:\Windows\System32\bash.exe /grant administrators:F
del C:\Windows\System32\bash.exe
- name: Install Rust Toolchain Components
uses: actions-rs/toolchain@v1
with:
components: clippy, rustfmt
override: true
toolchain: 1.56.0
- uses: Swatinem/rust-cache@v1
- name: Test
run: cargo test --all