Skip to content

ci: 🎡 fail on error #413

ci: 🎡 fail on error

ci: 🎡 fail on error #413

Workflow file for this run

name: CI
on:
pull_request:
push:

Check failure on line 5 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 5
branches: [ main, release/v[ 0-9 ].[ 0-9 ] ]
jobs:
ci-step:
strategy:
fail-fast: false
matrix:
target: ['ci:build', 'ci:test', 'ci:lint', 'ci:e2e', 'build docs']
runs-on: ubuntu-latest
name: ${{ matrix.target }}
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/step-setup
- name: Run ${{ matrix.target }}
run: npm run ${{ matrix.target }}
shell: bash
commitlint:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup
uses: ./.github/actions/step-setup
- name: Validate PR commits with commitlint
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose