Skip to content

ci: 🎡 update ci workflow #399

ci: 🎡 update ci workflow

ci: 🎡 update ci workflow #399

Workflow file for this run

name: CI

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

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml: (Line: 9, Col: 18, Idx: 98) - (Line: 9, Col: 20, Idx: 100): While scanning a plain scalar, find unexpected ':'.
on: [push, pull_request]
jobs:
ci-step:
strategy:
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