2021-04-10 13:53:12 +02:00
|
|
|
on:
|
|
|
|
pull_request:
|
2021-04-30 18:32:42 +02:00
|
|
|
paths:
|
|
|
|
- "cli/**"
|
|
|
|
- "lib/**"
|
|
|
|
- "/Cargo.*"
|
2021-04-10 13:53:12 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- try/**
|
|
|
|
tags-ignore:
|
2021-04-30 18:32:42 +02:00
|
|
|
- "cli-v*.*.*"
|
2021-05-08 17:49:57 +02:00
|
|
|
- "lib-v*.*.*"
|
2021-04-30 18:32:42 +02:00
|
|
|
paths:
|
|
|
|
- "cli/**"
|
|
|
|
- "lib/**"
|
|
|
|
- "/Cargo.*"
|
|
|
|
- ".github/**"
|
2021-04-10 13:53:12 +02:00
|
|
|
|
|
|
|
name: Checks & Tests
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform:
|
|
|
|
- ubuntu
|
|
|
|
- windows
|
|
|
|
- macos
|
|
|
|
|
|
|
|
name: Check & Test on ${{ matrix.platform }}
|
|
|
|
runs-on: "${{ matrix.platform }}-latest"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
- run: rustup component add clippy
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: check
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: clippy
|
|
|
|
|
|
|
|
msrv:
|
|
|
|
name: Check on MSRV
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
2021-10-19 13:48:47 +02:00
|
|
|
toolchain: 1.56.0
|
2021-04-10 13:53:12 +02:00
|
|
|
override: true
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: check
|
2021-05-08 18:20:13 +02:00
|
|
|
args: --package watchexec
|
2021-04-10 13:53:12 +02:00
|
|
|
|