mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-29 22:51:33 +02:00
Merge check, bors, and main tests
This commit is contained in:
parent
a49b38c9fd
commit
b2b3bb8fde
@ -1,7 +1,13 @@
|
|||||||
name: PR checks
|
name: Clippy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
tags-ignore:
|
||||||
|
- "*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
@ -12,7 +18,7 @@ jobs:
|
|||||||
- windows
|
- windows
|
||||||
- macos
|
- macos
|
||||||
|
|
||||||
name: PR check on ${{ matrix.platform }}
|
name: Clippy on ${{ matrix.platform }}
|
||||||
runs-on: "${{ matrix.platform }}-latest"
|
runs-on: "${{ matrix.platform }}-latest"
|
||||||
|
|
||||||
steps:
|
steps:
|
32
.github/workflows/main.yml
vendored
32
.github/workflows/main.yml
vendored
@ -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
|
|
||||||
|
|
50
.github/workflows/merge.yml
vendored
50
.github/workflows/merge.yml
vendored
@ -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
39
.github/workflows/tests.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user