-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (50 loc) · 1.42 KB
/
build-vscode-extension.yml
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
49
50
name: build-vscode-extension
on:
pull_request:
paths:
- 'plugins/vscode/**'
- '.github/workflows/build-vscode-extension.yml'
push:
# TODO: GH-#280
# paths:
# - './plugins/vscode/**'
# - '.github/workflows/build-vscode-extension.yml'
# tags:
# - '**'
jobs:
build-vscode-extension:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] #, macos-latest]
defaults:
run:
working-directory: 'plugins/vscode/'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Install packages
run: npm install
- name: Copy VSCode settings for test
run: |
id;
mkdir "${{ runner.temp }}/User";
echo "${{ runner.temp }};
cp src/test/e2e/examples/settings.json "${{ runner.temp }}/User/settings.json;
- name: Test compile
run: npm run test-compile
- name: Download WhaleLint executable
run: |
docker pull ghcr.io/cremindes/whalelint:latest;
image=$(docker create ghcr.io/cremindes/whalelint:latest)
docker cp $image:/usr/local/bin/whalelint ./;
docker rm $image;
- run: xvfb-run -a npm run test
if: runner.os == 'Linux'
env: {
TMP_DIR_PATH: "${{ runner.temp }}"
}