rustic/.github/workflows/tests.yaml
2023-03-13 16:14:56 +01:00

41 lines
828 B
YAML

on:
pull_request:
push:
branches:
- main
name: Tests
jobs:
test:
name: Test
runs-on: ${{ matrix.job.os }}
strategy:
matrix:
rust: [stable]
job:
- os: macos-latest
- os: ubuntu-latest
- os: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
command: test
- name: Cargo build
uses: actions-rs/cargo@v1
with:
command: build
toolchain: stable
args: --release
- name: Running bats tests
shell: bash
run: |
./test-bats/run-tests.sh