-
Notifications
You must be signed in to change notification settings - Fork 510
44 lines (38 loc) · 1.11 KB
/
deploy-cloudrun.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
name: deploy-cloudrun Unit
on:
push:
paths:
- 'deploy-cloudrun/**'
- '.github/workflows/deploy-cloudrun.yml'
pull_request:
paths:
- 'deploy-cloudrun/**'
- '.github/workflows/deploy-cloudrun.yml'
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: ./deploy-cloudrun
- name: npm lint
run: npm run lint
working-directory: ./deploy-cloudrun
- uses: google-github-actions/setup-gcloud@master
with:
service_account_key: ${{ secrets.DEPLOY_CLOUDRUN_SA_KEY_B64 }}
export_default_credentials: true
- name: npm test
run: npm run test
working-directory: ./deploy-cloudrun
env:
TEST_DEPLOY_CLOUDRUN_CREDENTIALS: ${{ secrets.DEPLOY_CLOUDRUN_SA_KEY_B64 }}
TEST_DEPLOY_CLOUDRUN_PROJECT: ${{ secrets.DEPLOY_CLOUDRUN_PROJECT_ID }}