-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (47 loc) · 1.36 KB
/
ci-workflow.yml
File metadata and controls
56 lines (47 loc) · 1.36 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
49
50
51
52
53
54
55
56
name: Lint and Test
on: [push, pull_request]
jobs:
lint:
name: Check tsc, lint, and prettier
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: true
clean: true
- uses: actions/setup-node@v1
with:
node-version: "18.x"
- run: npm install
- run: npm run lint
- run: npm run prettier
env:
CI: true
test:
name: Test on node ${{ matrix.node-version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [18]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install OpenSSL 1.1 on Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libssl1.1 || {
# Fallback for newer Ubuntu versions
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
}
- run: npm install
- run: git submodule update --init
- run: npm test
env:
CI: true