chore(deps): bump picomatch in /docs-site #1680
This file contains hidden or 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: checks | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| src: ${{ steps.filter.outputs.src }} | |
| permissions: | |
| pull-requests: read | |
| steps: | |
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | |
| id: filter | |
| with: | |
| # 'src' is true when any changed file matches a positive pattern | |
| # and does not match a negative pattern (! prefix). | |
| filters: | | |
| src: | |
| - '**' | |
| - '!**.md' | |
| - '!docs-site/**' | |
| - '!npm/**' | |
| compile: | |
| name: compile:required | |
| needs: changes | |
| if: needs.changes.outputs.src == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - name: Setup image (Linux) | |
| run: ./.github/scripts/provision-linux-build.sh | |
| - uses: actions-rust-lang/setup-rust-toolchain@a0b538fa0b742a6aa35d6e2c169b4bd06d225a98 # v1.15.3 | |
| with: | |
| cache-shared-key: ${{ runner.os }}-checks | |
| - name: build | |
| run: cargo build | |
| env: | |
| RUST_BACKTRACE: 1 | |
| lint: | |
| name: lint:required | |
| needs: [changes, compile] | |
| if: needs.changes.outputs.src == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - name: Setup image (Linux) | |
| run: ./.github/scripts/provision-linux-build.sh | |
| - uses: actions-rust-lang/setup-rust-toolchain@a0b538fa0b742a6aa35d6e2c169b4bd06d225a98 # v1.15.3 | |
| with: | |
| cache-shared-key: ${{ runner.os }}-checks | |
| - name: Run Lint | |
| run: cargo clippy --verbose --tests --benches -- -D warnings | |
| env: | |
| RUST_BACKTRACE: 1 | |
| format: | |
| name: fmt:required | |
| needs: [changes, compile] | |
| if: needs.changes.outputs.src == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - name: Setup image (Linux) | |
| run: ./.github/scripts/provision-linux-build.sh | |
| - uses: actions-rust-lang/setup-rust-toolchain@a0b538fa0b742a6aa35d6e2c169b4bd06d225a98 # v1.15.3 | |
| with: | |
| cache-shared-key: ${{ runner.os }}-checks | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| toml-format: | |
| name: toml-fmt:required | |
| needs: changes | |
| if: needs.changes.outputs.src == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - name: Install taplo | |
| run: | | |
| curl -fsSL https://github.com/tamasfe/taplo/releases/latest/download/taplo-linux-x86_64.gz \ | |
| | gunzip -c > taplo | |
| chmod +x taplo | |
| sudo mv taplo /usr/local/bin/taplo | |
| - name: Check TOML formatting | |
| run: taplo fmt --check | |
| # | |
| # Runs a series of checks to make sure that all the docs | |
| # that need to be generated have been genrated an are up | |
| # to date. | |
| # | |
| cli-ref: | |
| # | |
| # generate the CLI reference file and check if it is up to date | |
| # | |
| name: cli-ref:required | |
| needs: [changes, compile] | |
| if: needs.changes.outputs.src == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - name: Setup image (Linux) | |
| run: ./.github/scripts/provision-linux-build.sh | |
| - uses: actions-rust-lang/setup-rust-toolchain@a0b538fa0b742a6aa35d6e2c169b4bd06d225a98 # v1.15.3 | |
| with: | |
| cache-shared-key: ${{ runner.os }}-checks | |
| - name: generate docs | |
| run: ./scripts/generate-cli-docs.sh | |
| - name: Check for uncommitted changes | |
| run: | | |
| if [[ -n "$(git status --porcelain)" ]]; then | |
| echo "❌ The cli-reference documentation is not up to date" | |
| echo "" | |
| echo " Run ./scripts/generate-cli-docs.sh to update them" | |
| echo "" | |
| git status --porcelain | |
| exit 1 | |
| else | |
| echo "✅ Git state is clean." | |
| fi | |
| icp-yaml-schema: | |
| # | |
| # generate config schemas and check if they are up to date | |
| # | |
| name: icp-yaml-schema:required | |
| needs: [changes, compile] | |
| if: needs.changes.outputs.src == 'true' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - name: Setup image (Linux) | |
| run: ./.github/scripts/provision-linux-build.sh | |
| - uses: actions-rust-lang/setup-rust-toolchain@a0b538fa0b742a6aa35d6e2c169b4bd06d225a98 # v1.15.3 | |
| with: | |
| cache-shared-key: ${{ runner.os }}-checks | |
| - name: generate schemas | |
| run: ./scripts/generate-config-schemas.sh | |
| - name: Check for uncommitted changes | |
| run: | | |
| if [[ -n "$(git status --porcelain)" ]]; then | |
| echo "❌ The schema docs are not up to date" | |
| echo "" | |
| echo " Run ./scripts/generate-config-schemas.sh to update them" | |
| echo "" | |
| git status --porcelain | |
| exit 1 | |
| else | |
| echo "✅ Git state is clean." | |
| fi |