Skip to content

infra: trigger ci on develop branches #291

infra: trigger ci on develop branches

infra: trigger ci on develop branches #291

Workflow file for this run

name: test
on:
push:
branches: [main]
pull_request:
branches: [main, **/develop*]

Check failure on line 7 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

You have an error in your yaml syntax on line 7
jobs:
build:
name: "node version: ${{matrix.node}} os: ${{matrix.os}}"
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [18.*]
fail-fast: true
steps:
- name: checkout
uses: actions/checkout@v3
- name: "node.js version: ${{matrix.node}}"
uses: actions/setup-node@v3
with:
check-latest: true
node-version: ${{matrix.node}}
os: ${{matrix.os}}
cache: 'npm'
- name: npm10
run: npm i -g 'npm@10.*' --registry=https://registry.npmjs.org
- run: npm ci
- run: npm run build --if-present
- run: npm test