mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-16 16:31:30 +02:00
40 lines
799 B
YAML
40 lines
799 B
YAML
name: Test suite
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags-ignore:
|
|
- "*"
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
platform:
|
|
- macos
|
|
- ubuntu
|
|
- windows
|
|
toolchain:
|
|
- stable
|
|
- 1.60.0
|
|
|
|
name: Test ${{ matrix.platform }} with Rust ${{ matrix.toolchain }}
|
|
runs-on: "${{ matrix.platform }}-latest"
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
profile: minimal
|
|
toolchain: "${{ matrix.toolchain }}"
|
|
override: true
|
|
- name: Run test suite
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: test
|
|
- name: Check that CLI runs
|
|
run: cargo run -p watchexec-cli -- -1 echo
|