Update the search-replace
command to follow the VIP-CLI style guide
#3665
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- develop | |
- trunk | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
checks: | |
name: ${{ matrix.config.name }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
config: | |
- { name: Lint, tool: lint } | |
- { name: Type Checker, tool: check-types } | |
- { name: Check formatting, tool: 'format:check' } | |
steps: | |
- name: Check out the source code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
cache: npm | |
cache-dependency-path: npm-shrinkwrap.json | |
- name: Install dependencies | |
run: npm ci | |
- name: Run ${{ matrix.config.tool }} | |
run: npm run '${{ matrix.config.tool }}' | |
dependaban: | |
name: Dependaban | |
runs-on: ubuntu-latest | |
steps: | |
- uses: Automattic/vip-actions/dependaban@trunk | |
audit: | |
name: Verify signatures and provenance statements | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the source code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: npm | |
cache-dependency-path: npm-shrinkwrap.json | |
- name: Install latest npm | |
run: npm install -g npm@latest | |
- name: Install dependencies | |
run: npm ci | |
- name: Run audit | |
run: npm audit signatures | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
node-version: | |
- 'lts/*' | |
- 'lts/-1' | |
- current | |
steps: | |
- name: Check out the source code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
cache-dependency-path: npm-shrinkwrap.json | |
- name: Install dependencies | |
run: npm ci | |
- name: Run tests | |
run: npm run jest |