-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.33 KB
/
test.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
51
52
53
# Github Action from: https://code.visualstudio.com/api/working-with-extensions/continuous-integration#github-actions
name: Extension Test
on:
push:
branches: [ main ]
paths-ignore:
- 'CHANGELOG.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
- 'README.md'
- 'media/**'
- 'resources/**'
pull_request:
branches: [ main ]
paths-ignore:
- 'CHANGELOG.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
- 'README.md'
- 'media/**'
- 'resources/**'
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Run Docker Image
run: |
docker pull materialize/materialized:v0.62.2
docker run -d -v mzdata:/mzdata -p 6875:6875 -p 6876:6876 materialize/materialized:v0.62.2
# They are only needed to test the action locally with `act`
- name: Set up VSCode testing dependencies
run: |
sudo apt-get update
sudo apt-get install -y xvfb
sudo apt-get install -y libnss3-dev libasound2 libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev libatk1.0-0
- run: npm install
- run: xvfb-run -a npm test
if: runner.os == 'Linux'