[pull] main from astral-sh:main #216
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
test-latest-linux: | |
name: Test (Linux) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install cargo insta | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-insta | |
- name: Check | |
run: make check | |
- name: Test | |
run: make test | |
test-latest-macos: | |
name: Test (macOS) | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install cargo insta | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-insta | |
- name: Check | |
run: make check | |
- name: Test | |
run: make test | |
test-latest-windows: | |
name: Test (Windows) | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install cargo insta | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: cargo-insta | |
- name: Check | |
run: make check | |
- name: Test | |
run: make test |