urlpattern 0.4.2

rust-urlpattern is a Rust implementation of the URLPattern standard
Documentation
name: CI

on: [push, pull_request]

env:
  CARGO_TERM_COLOR: always

jobs:
  test:
    name: test
    runs-on: ubuntu-24.04-xl
    timeout-minutes: 30

    steps:
      - name: Checkout repo
        uses: actions/checkout@v2

      - name: Install Rust
        uses: dtolnay/rust-toolchain@stable
        with:
          components: clippy,rustfmt

      - name: Format
        run: rustfmt --check src/lib.rs

      - name: Build
        run: cargo build --release --all-targets --all-features

      - name: Test
        run: cargo test --release --all-targets --all-features

      - name: Lint
        run: cargo clippy --all-targets --all-features --release -- -D clippy::all

      - name: Publish
        if: |
          github.repository == 'denoland/rust-urlpattern' &&
          startsWith(github.ref, 'refs/tags/')
        env:
          CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
        run: |
          cargo publish -vv