-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (52 loc) · 1.48 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
54
55
56
57
58
59
60
# 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
- run: npm install
- name: Run ESLint
run: npm run lint
- 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
- name: Run Tests on Linux
if: runner.os == 'Linux'
run: |
export MZ_CONFIG_PATH=$HOME/.config/materialize/test
xvfb-run -a npm test