setup-gcloud/.github/workflows/deploy-cloudrun.yml
Averi Kitsch a85b04e409
feat!: Update Cloud Run action (#207)
* Refactor

* add merge

* linting

* update setup

* Update tests

* Add more e2e tests

* update workflow var

* fix typo

* Test workflow

* refactor tests

* Add clean up

* Add step

* fix env vars

* Fix typo

* fix readme

* update name

* remove dist

* remove dist

* fix dep

* Other IT run on push only
2020-10-23 18:42:03 -07:00

44 lines
1.1 KiB
YAML

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: GoogleCloudPlatform/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 }}