mirror of
https://github.com/zyphrzero/Termy.git
synced 2026-07-22 17:10:32 +00:00
56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main, develop]
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- 'assets/**'
|
|
- 'README.md'
|
|
- 'README_ZH.md'
|
|
- 'CHANGELOG.md'
|
|
pull_request:
|
|
branches: [main, develop]
|
|
paths-ignore:
|
|
- 'docs/**'
|
|
- 'assets/**'
|
|
- 'README.md'
|
|
- 'README_ZH.md'
|
|
- 'CHANGELOG.md'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ci-${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
plugin:
|
|
name: Build and test plugin
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- uses: pnpm/action-setup@v5
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: '22'
|
|
cache: 'pnpm'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Build plugin
|
|
run: pnpm build
|
|
|
|
- name: Run terminal tests
|
|
run: pnpm test:terminal
|
|
|
|
- name: Run script tests
|
|
run: node --test scripts/upload-r2-assets.test.js
|