-
Notifications
You must be signed in to change notification settings - Fork 510
46 lines (40 loc) · 1.26 KB
/
get-gke-credentials-unit.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
name: get-gke-credentials Unit
on:
push:
paths:
- 'get-gke-credentials/**'
- '.github/workflows/get-gke-credentials**'
pull_request:
paths:
- 'get-gke-credentials/**'
- '.github/workflows/get-gke-credentials**'
jobs:
run:
name: test
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: 12.x
- name: npm install
run: npm install
working-directory: ./get-gke-credentials
- name: npm lint
run: npm run lint
working-directory: ./get-gke-credentials
- uses: google-github-actions/setup-gcloud@master
with:
service_account_key: ${{ secrets.GET_GKE_CRED_SA_KEY_JSON }}
export_default_credentials: true
- name: npm test
run: npm run test
working-directory: ./get-gke-credentials
env:
GET_GKE_CRED_SA_KEY_JSON: ${{ secrets.GET_GKE_CRED_SA_KEY_JSON }}
GET_GKE_CRED_PROJECT: ${{ secrets.GET_GKE_CRED_PROJECT }}
GET_GKE_CRED_CLUSTER_NAME: ${{ secrets.GET_GKE_CRED_CLUSTER_NAME }}
GKE_AUTH_CLUSTER_LOCATION: ${{ secrets.GKE_AUTH_CLUSTER_LOCATION }}