feat: 增加 coffeescript 支持 #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Development and Testing | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- run: npm i -g @vscode/vsce pnpm | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
id: cache | |
with: | |
path: | | |
**/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
- name: Install dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: pnpm i --frozen-lockfile --ignore-scripts | |
- run: | | |
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket | |
sudo systemctl start dbus | |
xvfb-run -a pnpm test:suite:mocha | |
if: runner.os == 'Linux' | |
- run: pnpm test:suite:mocha | |
if: runner.os != 'Linux' | |
- run: pnpm run test:coverage | |
- run: vsce package --no-dependencies |