Skip to content

Merge pull request #65 from gti-sos/Entrega_D03_enrgaroli #228

Merge pull request #65 from gti-sos/Entrega_D03_enrgaroli

Merge pull request #65 from gti-sos/Entrega_D03_enrgaroli #228

Workflow file for this run

name: CI / CD
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
- run: cd front; npm install;npm install axios; cd ..
- run: cd front; npm run build; cd ..
- run: npm install
- run: npx playwright install --with-deps
- run: npm test
- run: npm run coverage
- run: npm run report-test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: '${{ secrets.CODECOV_TOKEN }}'
slug: gti-sos/SOS2324-14
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'
- run: cd front; npm install; npm install axios; cd ..
- run: cd front; npm run build; cd ..
- name: Deploy
run: gcloud app deploy