-
-
Notifications
You must be signed in to change notification settings - Fork 531
97 lines (97 loc) · 2.63 KB
/
e2e-git-installs.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
87
88
89
90
91
92
93
94
95
96
97
name: E2E Install from git
# TODO test global installs, too?
on:
# nightly
schedule:
- cron: '0 0 * * *'
# To temporarily enable on your branch for verification
# push: {}
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
npm:
name: "npm"
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, windows]
steps:
# install node
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Test
run: |
npm --version
echo '{"scripts": {"test": "ts-node -vvv"}}' > package.json
npm install https://github.com/TypeStrong/ts-node#${{ github.ref_name }}
npm test
pnpm:
name: "pnpm"
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, windows]
steps:
# install node
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Test
run: |
corepack enable
corepack prepare pnpm@latest --activate
pnpm --version
echo '{"scripts": {"test": "ts-node -vvv"}}' > package.json
pnpm install https://github.com/TypeStrong/ts-node#${{ github.ref_name }}
pnpm test
yarn:
name: "yarn"
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, windows]
steps:
# install node
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Test
run: |
corepack enable
corepack prepare yarn@stable --activate
yarn --version
echo '{"scripts": {"test": "ts-node -vvv"}}' > package.json
yarn add ts-node@https://github.com/TypeStrong/ts-node#${{ github.ref_name }}
yarn add typescript
yarn test
yarn1:
name: "yarn1 (officially *not* supported)"
runs-on: ${{ matrix.os }}-latest
continue-on-error: true
strategy:
fail-fast: false
matrix:
os: [ubuntu, windows]
steps:
# install node
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Test
run: |
npm install -g yarn
yarn --version
yarn cache list
echo '{"scripts": {"test": "ts-node -vvv"}}' > package.json
yarn add https://github.com/TypeStrong/ts-node#${{ github.ref_name }}
yarn test