Skip to content

Commit fc8e3ee

Browse files
authored
Run node ci jobs on mac (#99)
1 parent ab4dfd3 commit fc8e3ee

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ on:
1010

1111
jobs:
1212
node-ci:
13-
runs-on: ubuntu-latest
1413
strategy:
1514
matrix:
15+
platform: [ubuntu-latest, macos-latest]
1616
node-version: [12.x]
1717
package: [kpt-functions, create-kpt-functions, init-package, hello-world, demo-functions]
18+
runs-on: ${{ matrix.platform }}
1819
steps:
1920
- uses: actions/checkout@v1
2021
- name: Use Node.js ${{ matrix.node-version }}
@@ -45,7 +46,10 @@ jobs:
4546
[[ -z $DIFF ]] || { echo "Need to update docs: $DIFF"; }
4647
4748
go-ci:
48-
runs-on: ubuntu-latest
49+
strategy:
50+
matrix:
51+
platform: [ubuntu-latest]
52+
runs-on: ${{ matrix.platform }}
4953
env:
5054
GOPATH: /home/runner/work/kpt-functions-sdk/go
5155
GO111MODULE: off
@@ -66,11 +70,11 @@ jobs:
6670
6771
e2e-ci:
6872
needs: [node-ci, go-ci]
69-
runs-on: ubuntu-latest
7073
strategy:
7174
matrix:
75+
platform: [ubuntu-latest]
7276
node-version: [12.x]
73-
package: [ts/demo-functions]
77+
runs-on: ${{ matrix.platform }}
7478
steps:
7579
- uses: actions/checkout@v1
7680
- name: Use Node.js ${{ matrix.node-version }}
@@ -80,14 +84,14 @@ jobs:
8084
registry-url: 'https://npm.pkg.github.com'
8185
- name: Install NPM packages
8286
run: |
83-
cd ${{ matrix.package }}
87+
cd ts/demo-functions
8488
npm ci
85-
envsubst < $NPM_CONFIG_USERCONFIG > .npmrc
89+
eval "echo \"$(sed 's/"/\\"/g' $NPM_CONFIG_USERCONFIG)\"" > .npmrc
8690
env:
8791
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8892
- name: Build docker images
8993
run: |
90-
cd ${{ matrix.package }}
94+
cd ts/demo-functions
9195
npm run kpt:docker-build
9296
- name: Run e2e tests
9397
run: |

0 commit comments

Comments
 (0)