yan-istart_IStart-Note-AI-P.../.github/workflows/ci.yml

35 lines
664 B
YAML

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
build:
name: Type-check and build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18.x"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Type-check
run: npm run typecheck
- name: Build
run: npm run build
- name: Verify build artifacts
run: |
test -f dist/main.js
test -f dist/manifest.json
test -f dist/styles.css