add workflow
Some checks failed
Add-in CI / Build and test Word add-in (push) Failing after 1m4s
Web CI / Build and test web app (push) Failing after 10s

This commit is contained in:
Suphonchai Phoonsawat 2026-09-21 15:55:49 +07:00
parent 535a59f092
commit 912bf9d0bd
4 changed files with 160 additions and 0 deletions

View file

@ -0,0 +1,48 @@
name: Add-in CI
on:
push:
branches:
- main
- master
paths:
- 'addin/**'
- 'docker-compose.yml'
- '.forgejo/workflows/addin.yml'
pull_request:
paths:
- 'addin/**'
- 'docker-compose.yml'
- '.forgejo/workflows/addin.yml'
permissions:
contents: read
jobs:
build-and-test:
name: Build and test Word add-in
runs-on: ubuntu-latest
timeout-minutes: 25
defaults:
run:
working-directory: addin
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install --no-fund --no-audit
- name: Run tests
run: npm test -- --runInBand
- name: Validate manifest
run: npm run validate
- name: Build add-in
run: npm run build