-
Notifications
You must be signed in to change notification settings - Fork 46
50 lines (47 loc) · 1.2 KB
/
pr-verify.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: pr-verify
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
pr-verify-job:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
node:
- 20
steps:
- run: |
sudo apt-get update
sudo apt-get install erlang
if: runner.os == 'Linux'
- run: |
brew install erlang@26
if: runner.os =='macOS'
- run: |
VERSION=$(ls /opt/homebrew/Cellar/erlang/)
export PATH=$PATH:/opt/homebrew/Cellar/erlang/$VERSION/bin
erl -version
name: setup path
if: runner.os =='macOS'
- name: Checkout Source
uses: actions/checkout@v4
- name: Install Node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm install -g typescript "vsce"
- run: npm install
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'
- run: |
./rebar3 ct