Skip to content

Fix the parsing logic of matches_pattern! to support _ at the top l… #2430

Fix the parsing logic of matches_pattern! to support _ at the top l…

Fix the parsing logic of matches_pattern! to support _ at the top l… #2430

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
permissions: read-all
env:
CARGO_TERM_COLOR: always
jobs:
clippy:
runs-on: ubuntu-latest
name: clippy / ${{ matrix.toolchain }}
permissions:
contents: read
checks: write
strategy:
fail-fast: false
matrix:
toolchain: [stable, beta]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1
with:
toolchain: ${{ matrix.toolchain }}
components: clippy
- name: cargo clippy
uses: actions-rs/clippy-check@b5b5f21f4797c02da247df37026fcd0a5024aa4d # v1.0.7
with:
args: --all-targets --all-features
token: ${{ secrets.GITHUB_TOKEN }}
test-latest-deps:
runs-on: ubuntu-latest
name: test (latest deps) / ubuntu / ${{ matrix.toolchain }}
strategy:
matrix:
toolchain: [stable, nightly, beta]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1
with:
toolchain: ${{ matrix.toolchain }}
- name: cargo update
run: cargo update
- name: cargo test --locked
run: cargo test --locked --all-features
test:
runs-on: ubuntu-latest
name: test / ubuntu / ${{ matrix.toolchain }}
strategy:
matrix:
toolchain: [stable, nightly, beta]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1
with:
toolchain: ${{ matrix.toolchain }}
- name: cargo test --locked
run: cargo test --locked --all-features
lint:
runs-on: ubuntu-latest
name: lint / ubuntu
strategy:
matrix:
toolchain: [nightly]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt
- name: cargo fmt --check
run: cargo fmt --check
test-no-default-features:
runs-on: ubuntu-latest
name: test (no default features) / ubuntu / ${{ matrix.toolchain }}
strategy:
matrix:
toolchain: [stable, 1.70.0]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1
with:
toolchain: ${{ matrix.toolchain }}
- name: cargo test --locked
run: cargo test --locked --no-default-features
integration-test:
runs-on: ubuntu-latest
name: integration-test / ubuntu / ${{ matrix.toolchain }}
strategy:
matrix:
toolchain: [stable, 1.70.0, nightly, beta]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1
with:
toolchain: ${{ matrix.toolchain }}
- name: run_integration_tests.sh
run: /bin/bash ./run_integration_tests.sh
integration-test-latest-deps:
runs-on: ubuntu-latest
name: integration-test (latest deps) / ubuntu / ${{ matrix.toolchain }}
strategy:
matrix:
toolchain: [stable, nightly, beta]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1
with:
toolchain: ${{ matrix.toolchain }}
- name: cargo update
run: cargo update
- name: run_integration_tests.sh
run: /bin/bash ./run_integration_tests.sh
doc:
runs-on: ubuntu-latest
name: doc / nightly
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: true
- name: Install nightly
uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1
with:
toolchain: nightly
- name: cargo doc
run: cargo doc --no-deps --all-features
env:
RUSTDOCFLAGS: -D warnings