fix: just use a normal \d+ for replace mode #127
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: Check | |
on: | |
push: | |
paths: | |
- '**.nix' | |
- '**.rs' | |
- Cargo.* | |
- flake.lock | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
unit-tests: | |
name: Unit tests | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- feature-set: "" | |
- feature-set: --all-features | |
- feature-set: --no-default-features | |
- feature-set: --no-default-features -F completions | |
- feature-set: --no-default-features -F completions,manpages | |
- feature-set: --no-default-features -F manpages | |
- feature-set: --no-default-features -F replace | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PAT }} | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v12 | |
with: | |
extra-conf: | | |
log-lines = 500 | |
- name: Set up Magic Nix Cache | |
uses: DeterminateSystems/magic-nix-cache-action@v7 | |
- name: Set up build cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: build-${{ runner.os }}-${{ hashFiles('Cargo.toml') }}-${{ hashFiles('flake.nix') }}-${{ hashFiles('**.lock') }} | |
- name: cargo test ${{ matrix.feature-set }} | |
run: nix develop -c cargo t -v ${{ matrix.feature-set }} | |
nix-flake: | |
name: Nix flake | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.PAT }} | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v12 | |
with: | |
extra-conf: | | |
log-lines = 500 | |
- name: Set up Magic Nix Cache | |
uses: DeterminateSystems/magic-nix-cache-action@v7 | |
- name: Check Nix flake inputs | |
uses: DeterminateSystems/flake-checker-action@v8 | |
with: | |
fail-mode: true | |
check-outdated: false | |
- name: Check Nix flake outputs | |
run: nix flake check --all-systems |