Skip to content

Cover overlooked branches #53

Cover overlooked branches

Cover overlooked branches #53

Workflow file for this run

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/[email protected]
- 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'