-
Notifications
You must be signed in to change notification settings - Fork 1
86 lines (74 loc) · 2.08 KB
/
test.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: CI
on:
push:
branches:
- develop
- prerelease
pull_request: {}
workflow_dispatch: {}
jobs:
can-publish:
name: Can publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with: { submodules: recursive }
- uses: actions/setup-node@v1
with: { node-version: 16 }
- uses: pnpm/[email protected]
with:
version: 7.5.0
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- name: pnpm release:dry
run: pnpm release:dry
#can-install:
#name: Check that the library can be installed and CLI tool runs
#runs-on: ubuntu-latest
#steps:
#- name: Install PNPM
#uses: pnpm/[email protected]
#with:
#version: 7.5.0
#- name: Fetch sources
#uses: actions/checkout@v2
#with:
#submodules: recursive
#path: ./deps/ganesha
#- name: Create minimal project
#run: |
#echo '{"scripts":{"hello":"ganesha-node"}}' > package.json
#touch pnpm-workspace.yaml
#pnpm add -w ./deps/ganesha
#pnpm i --no-frozen-lockfile
#node_modules/.bin/ganesha-node -e 'console.log("hello world")'
#test:
#name: Run tests
#runs-on: ubuntu-latest
#strategy:
#matrix:
#node: [16, 18]
#steps:
#- name: Fetch sources
#uses: actions/checkout@v2
#with: { submodules: recursive }
#- name: Setup Node
#uses: actions/setup-node@v3
#with:
#node-version: ${{ matrix.node }}
#- name: Install PNPM and deps
#uses: pnpm/[email protected]
#with:
#version: 6.14.3
#run_install: |
#- recursive: true
#args: [--frozen-lockfile, --strict-peer-dependencies]
#- name: Run tests
#run: pnpm test:node
##- name: Coverage
##run: pnpm run coverage
##- uses: codecov/codecov-action@v2
##with:
##token: ${{ secrets.CODECOV_TOKEN }}
##