Merge check, bors, and main tests

This commit is contained in:
Félix Saparelli 2022-09-07 12:36:55 +12:00
parent a49b38c9fd
commit b2b3bb8fde
No known key found for this signature in database
4 changed files with 47 additions and 84 deletions

View File

@ -1,7 +1,13 @@
name: PR checks
name: Clippy
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
tags-ignore:
- "*"
jobs:
check:
@ -12,7 +18,7 @@ jobs:
- windows
- macos
name: PR check on ${{ matrix.platform }}
name: Clippy on ${{ matrix.platform }}
runs-on: "${{ matrix.platform }}-latest"
steps:

View File

@ -1,32 +0,0 @@
name: Main branch
on:
push:
branches:
- main
tags-ignore:
- "*"
jobs:
check:
strategy:
matrix:
platform:
- ubuntu
- windows
- macos
name: Check 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
- uses: actions-rs/cargo@v1
with:
command: check

View File

@ -1,50 +0,0 @@
name: Merge (with bors)
on:
push:
branches:
- staging
- trying
tags-ignore:
- "*"
jobs:
test:
strategy:
matrix:
include:
- name: stable-ubuntu
platform: ubuntu
toolchain: stable
- name: stable-windows
platform: windows
toolchain: stable
- name: stable-macos
platform: macos
toolchain: stable
- name: msrv-ubuntu
platform: ubuntu
toolchain: 1.60.0
- name: msrv-windows
platform: windows
toolchain: 1.60.0
- name: msrv-macos
platform: macos
toolchain: 1.60.0
name: Test on ${{ 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

39
.github/workflows/tests.yml vendored Normal file
View File

@ -0,0 +1,39 @@
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