-
Notifications
You must be signed in to change notification settings - Fork 14
62 lines (59 loc) · 1.88 KB
/
ci.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
53
54
55
56
57
58
59
60
61
62
name: ci
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16, 18]
orbitjs: [0.16.7, 0.17.0]
experimental: [false]
include:
- node: 17
experimental: true
continue-on-error: ${{ matrix.experimental }}
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: echo "::set-output name=dir::$(yarn cache dir)"
id: yarn-cache-dir-path
- uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: |
echo "`jq '.devDependencies."@orbit/data"="${{ matrix.orbitjs }}"' package.json`" > package.json
echo "`jq '.devDependencies."@orbit/memory"="${{ matrix.orbitjs }}"' package.json`" > package.json
- run: yarn install
- run: yarn test
- run: yarn build
# coverage:
# needs: test
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 14
# - run: echo "::set-output name=dir::$(yarn cache dir)"
# id: yarn-cache-dir-path
# - uses: actions/cache@v3
# with:
# path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-
# - run: yarn install
# - uses: paambaati/[email protected]
# env:
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
# with:
# coverageCommand: yarn test --coverage