Skip to content

Commit

Permalink
gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Víctor Escalera García committed Mar 7, 2024
1 parent 9140af6 commit 72edb09
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 10 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI / CD
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm start &
- run: npm test

deploy:
needs: [test]
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v2

- id: 'auth'
uses: 'google-github-actions/auth@v1'
with:
credentials_json: '${{ secrets.GCP_SA_KEY_JSON }}'

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'

- name: 'Use gcloud CLI'
run: 'gcloud info'

- name: Deploy
run: gcloud app deploy
10 changes: 0 additions & 10 deletions .github/workflows/ci.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,6 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*


gc-sa-key.json

0 comments on commit 72edb09

Please sign in to comment.