Skip to content

Commit 40f1d3c

Browse files
committed
Separated both jobs(fixes metacall#68)
1 parent 93b28ae commit 40f1d3c

File tree

1 file changed

+37
-13
lines changed

1 file changed

+37
-13
lines changed

.github/workflows/ci.yml

+37-13
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
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
2219
steps:
2320
- name: Checkout
2421
uses: actions/checkout@v4
@@ -46,22 +43,49 @@ jobs:
4643
# run: |
4744
# npm run test
4845

49-
- name: Setup MetaCall CLI (unix)
50-
if: matrix.os == 'ubuntu-latest'
46+
- name: Setup MetaCall CLI
5147
run: wget -O - https://raw.githubusercontent.com/metacall/install/master/install.sh | sh
5248

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-
5849
- name: Run Integration Tests
5950
shell: bash
6051
run: ./test.sh
6152

6253
- name: Publish
6354
uses: JS-DevTools/npm-publish@v3
64-
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
55+
if: startsWith(github.ref, 'refs/tags/')
6556
with:
6657
access: 'public'
6758
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

Comments
 (0)