Skip to content

Commit b25df97

Browse files
committed
add workflow
1 parent 841981c commit b25df97

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/workflow1.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Node.js CI2
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [16.x, 18.x]
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
- run: npm install -g pnpm@6
22+
- uses: actions/cache@v2
23+
with:
24+
path: ~/.pnpm-store
25+
key: ${{ runner.os }}-pnpm-store
26+
- run: sudo apt-get install libocct-data-exchange-dev libocct-modeling-data-dev
27+
- run: npm install -g pnpm@6
28+
- run: pnpm recursive install
29+
- run: pnpm run build
30+
- run: pnpm run pretest
31+
- run: pnpm test

0 commit comments

Comments
 (0)