fix: dependabot auto-merge to respect required workflow statuses #860
Workflow file for this run
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: CI - UI React | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
defaults: | |
run: | |
working-directory: packages/ui/react | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
outputs: | |
ui_react: ${{ steps.filter.outputs.ui_react }} | |
steps: | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
ui_react: | |
- 'packages/ui/react/**' | |
build: | |
name: Build UI-React | |
needs: changes | |
if: ${{ needs.changes.outputs.ui_react == 'true' }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: [20] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.head_ref }} | |
persist-credentials: true | |
fetch-depth: 0 | |
- name: Use node ${{ matrix.node }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
registry-url: https://registry.npmjs.org | |
- name: install | |
run: npm ci --ignore-scripts | |
- name: build | |
run: npm run build | |
- name: lint | |
run: npm run lint | |
- name: test | |
run: npm test |