@@ -14,11 +14,8 @@ concurrency:
14
14
cancel-in-progress : true
15
15
16
16
jobs :
17
- ci :
18
- strategy :
19
- matrix :
20
- os : [ubuntu-latest, windows-latest]
21
- runs-on : ${{matrix.os}}
17
+ ci-ubuntu :
18
+ runs-on : ubuntu-latest
22
19
steps :
23
20
- name : Checkout
24
21
uses : actions/checkout@v4
@@ -46,22 +43,49 @@ jobs:
46
43
# run: |
47
44
# npm run test
48
45
49
- - name : Setup MetaCall CLI (unix)
50
- if : matrix.os == 'ubuntu-latest'
46
+ - name : Setup MetaCall CLI
51
47
run : wget -O - https://raw.githubusercontent.com/metacall/install/master/install.sh | sh
52
48
53
- - name : Setup MetaCall CLI (windows)
54
- if : matrix.os == 'windows-latest'
55
- run : |
56
- cmd.exe /c "powershell -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/metacall/install/master/install.ps1')))""
57
-
58
49
- name : Run Integration Tests
59
50
shell : bash
60
51
run : ./test.sh
61
52
62
53
- name : Publish
63
54
uses : JS-DevTools/npm-publish@v3
64
- if : startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
55
+ if : startsWith(github.ref, 'refs/tags/')
65
56
with :
66
57
access : ' public'
67
58
token : ${{ secrets.NPM_AUTH_TOKEN }}
59
+
60
+ ci-windows :
61
+ runs-on : windows-latest
62
+ steps :
63
+ - name : Checkout
64
+ uses : actions/checkout@v4
65
+
66
+ - name : Setup NodeJS
67
+ uses : actions/setup-node@v4
68
+ with :
69
+ node-version : ' 18'
70
+ registry-url : https://registry.npmjs.org
71
+
72
+ - name : Update NPM
73
+ run : npm install -g npm@latest
74
+
75
+ - name : Installing Dependencies
76
+ run : npm i
77
+
78
+ - name : Lint
79
+ run : npm run lint
80
+
81
+ - name : Build
82
+ run : npm run build
83
+
84
+ - name : Setup MetaCall CLI
85
+ run : |
86
+ cmd.exe /c "powershell -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/metacall/install/master/install.ps1')))""
87
+
88
+ - name : Run Integration Tests
89
+ shell : bash
90
+ run : ./test.sh
91
+
0 commit comments