@@ -12,31 +12,33 @@ jobs:
1212 matrix :
1313 node-version : [12.x]
1414 steps :
15- - uses : actions/checkout@v1
16- - name : Set up gcloud
17- uses : GoogleCloudPlatform/github-actions/setup-gcloud@master
18- with :
19- version : ' 275.0.0'
15+ - uses : actions/checkout@v1
16+ - name : Set up gcloud
17+ uses : GoogleCloudPlatform/github-actions/setup-gcloud@master
18+ with :
19+ version : " 275.0.0"
2020 service_account_email : ${{ secrets.GCP_SA_EMAIL }}
2121 service_account_key : ${{ secrets.GCP_SA_KEY }}
22- - run : gcloud auth configure-docker
23- - name : Use Node.js ${{ matrix.node-version }}
24- uses : actions/setup-node@v1
25- with :
26- node-version : ${{ matrix.node-version }}
27- - name : Install NPM packages
28- run : |
29- cd ts/demo-functions
30- npm ci
31- npm test
32- - name : Build docker images
33- run : |
34- cd ts/demo-functions
35- npm run kpt:docker-build -- --tag=latest
36- - name : Run all e2e tests
37- run : |
38- TAG=latest tests/e2e.sh
39- - name : Push docker images
40- run : |
41- cd ts/demo-functions
42- npm run kpt:docker-push -- --tag=latest
22+ - run : gcloud auth configure-docker
23+ - name : Use Node.js ${{ matrix.node-version }}
24+ uses : actions/setup-node@v1
25+ with :
26+ node-version : ${{ matrix.node-version }}
27+ - name : Install NPM packages
28+ run : |
29+ cd ts/demo-functions
30+ npm ci
31+ npm test
32+ - name : Build docker images
33+ run : |
34+ cd ts/demo-functions
35+ npm run kpt:docker-build -- --tag=latest
36+ - name : Run all e2e tests
37+ run : |
38+ sudo curl https://storage.googleapis.com/kpt-dev/latest/linux_amd64/kpt -o /usr/local/bin/kpt
39+ sudo chmod +x /usr/local/bin/kpt
40+ TAG=latest tests/e2e.sh
41+ - name : Push docker images
42+ run : |
43+ cd ts/demo-functions
44+ npm run kpt:docker-push -- --tag=latest
0 commit comments