-
Notifications
You must be signed in to change notification settings - Fork 272
52 lines (43 loc) · 1.13 KB
/
test_package_updates.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
name: Package updates
on:
push:
branches:
- master
paths:
- '*/**/package.json'
- '!*/**/node_modules/package.json'
- 'package.json'
- '!node_modules/package.json'
pull_request:
branches:
- master
- rel/**
paths:
- '*/**/package.json'
- '!*/**/node_modules/package.json'
- 'package.json'
- '!node_modules/package.json'
jobs:
unit-test-all:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup node:${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Fetch Base Ref
run: git fetch origin $GITHUB_BASE_REF
- name: Remove yarn.lock to simulate downstream installs
run: rm yarn.lock
- name: Install Packages
run: yarn install
- name: Unit test all
run: yarn unit-test
env:
BITGOJS_TEST_PASSWORD: ${{ secrets.BITGOJS_TEST_PASSWORD }}