forked from conwnet/github1s
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.25 KB
/
Copy pathtest-wtih-vscode-build.yml
File metadata and controls
48 lines (42 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Build & Test with VS Code build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-with-vscode-build:
permissions:
contents: read
strategy:
matrix:
os: [macos-14]
node-version: [24.x]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
cache: 'npm'
node-version: ${{ matrix.node-version }}
- run: npm install && cd vscode-web && npm install
- name: Build VS Code web
working-directory: vscode-web
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run build
- run: npm run link && npm run build
env:
GITHUB_API_PREFIX: http://localhost:8080/api/github
- name: Install snapshot test dependencies
working-directory: tests
run: npm ci && npx playwright install --with-deps
- name: Run snapshot tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx start-server-and-test watch:dev-server http://localhost:8080 "env -u GITHUB_TOKEN npm --prefix tests test"