-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.05 KB
/
pr.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
name: PR
on:
pull_request:
branches:
- main
paths-ignore:
- '**.md'
jobs:
test:
name: Test
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
- name: Set up ccache
uses: hendrikmuhs/[email protected]
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Set up Node
uses: actions/setup-node@v3
with:
cache: pnpm
registry-url: https://npm.pkg.github.com
- name: Install
run: pnpm i --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.GPR_RO_TOKEN }}
- name: Lint
run: pnpm run lint
- name: Build addon binding
run: |
pnpm -F highs-addon run build \
--CDCMAKE_CXX_COMPILER_LAUNCHER=ccache
- name: Test
run: pnpm t
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: out/coverage