mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
40 lines
797 B
YAML
40 lines
797 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
|
|
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
|