Upgrade depdenencies #358
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: π§ͺ Test and Lint | |
on: | |
push: | |
branches-ignore: [wip/**] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [[π§, Ubuntu], [π, macOS], [πͺ, Windows]] | |
toolchain: ["stable", "beta", "nightly"] | |
name: π¦ ${{ matrix.toolchain }} on ${{ matrix.os[0] }} ${{ matrix.os[1] }} | |
runs-on: ${{ matrix.os[1] }}-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@stable | |
with: { toolchain: "${{ matrix.toolchain }}" } | |
- name: Test | |
run: make test | |
lint: | |
name: π Lint and Cover | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Rust Cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Setup Rust | |
uses: dtolnay/rust-toolchain@stable | |
- name: Run pre-commit | |
uses: pre-commit/action@v3.0.1 | |
- uses: actions-rust-lang/audit@v1 | |
name: Audit Rust Dependencies | |
- name: Generate Coverage | |
run: make cover RUST_BACKTRACE=1 | |
- name: Publish Coverage | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: pgxn/meta | |
files: target/cover/coveralls | |
- name: Clear Badge Cache | |
uses: kevincobain2000/action-camo-purge@v1 | |
if: github.ref_name == 'main' |