chore(deps-dev): update development dependencies #1695
Workflow file for this run
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: | |
branches: | |
- main | |
schedule: | |
- cron: 0 1 * * 1-5 | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Install Buf | |
uses: bufbuild/[email protected] | |
with: | |
github_token: ${{ github.token }} | |
- name: Set up Node.js | |
uses: ./.github/actions/setup-node | |
- name: Lint code | |
run: pnpm run lint | |
- name: Generate code | |
run: pnpm run generate | |
- name: Generate docs | |
run: pnpm run docs | |
- name: Check for uncommitted changes | |
run: |- | |
if [[ -n $(git status --porcelain) ]]; then | |
echo "::error::Uncommitted changes detected" | |
git -c color.ui=always status -vv | |
exit 1 | |
fi | |
test-matrix: | |
name: Generate test matrix | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.test-matrix.outputs.matrix }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: ./.github/actions/setup-node | |
with: | |
only-scripts: true | |
- id: test-matrix | |
name: Generate test matrix | |
run: pnpm run test:matrix | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
test: | |
name: Test (${{ matrix.title }}) | |
runs-on: ubuntu-latest | |
continue-on-error: ${{ github.event_name != 'schedule' && !matrix.required }} | |
needs: | |
- test-matrix | |
strategy: | |
fail-fast: false | |
matrix: ${{ fromJSON(needs.test-matrix.outputs.matrix) }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: ./.github/actions/setup-node | |
with: | |
node-version: ${{ matrix.node }} | |
save-cache: false | |
- name: Set up tests | |
if: matrix.setup | |
run: ${{ matrix.setup }} | |
- name: Run tests | |
run: ${{ matrix.test }} | |
test-results: | |
name: Check test results | |
runs-on: ubuntu-latest | |
if: always() | |
needs: | |
- test | |
steps: | |
- name: Check test results | |
run: test "${{ needs.test.result }}" = "success" |