38 lines
781 B
YAML
38 lines
781 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 8
|
|
|
|
- name: Install Dependencies
|
|
run: pnpm install
|
|
|
|
- name: Download yt-dlp binaries
|
|
run: |
|
|
# Download yt-dlp.exe for Windows
|
|
curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe -o resources/yt-dlp.exe
|
|
|
|
- name: Lint and format check
|
|
run: pnpm run check
|
|
|
|
- name: build-win
|
|
run: pnpm run build:win
|