This repository was archived by the owner on Oct 17, 2024. It is now read-only.
Build(deps): Bump the all-dependencies group across 1 directory with 16 updates #96
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| pull_request: | |
| jobs: | |
| build-and-bundle-report: | |
| name: build-project-and-bundle-report | |
| runs-on: ubuntu-22.04 | |
| env: | |
| # token usado para diferenciar uma nova run de uma repetida | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
| # variaveis com prefixo cypress são usadas pela sdk de administrador | |
| VITE_FIREBASE_API_KEY: ${{secrets.VITE_FIREBASE_API_KEY}} | |
| VITE_FIREBASE_AUTH_DOMAIN: ${{secrets.VITE_FIREBASE_AUTH_DOMAIN}} | |
| VITE_FIREBASE_PROJECT_ID: ${{secrets.VITE_FIREBASE_PROJECT_ID}} | |
| VITE_FIREBASE_STORAGE_BUCKET: ${{secrets.VITE_FIREBASE_STORAGE_BUCKET}} | |
| VITE_FIREBASE_MESSAGING_SENDER_ID: ${{secrets.VITE_FIREBASE_MESSAGING_SENDER_ID}} | |
| VITE_FIREBASE_APP_ID: ${{secrets.VITE_FIREBASE_APP_ID}} | |
| steps: | |
| # instalando dependências e gerando relatório do bundle | |
| # comando vite-bundle-visualizer também realiza build do projeto | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v3 | |
| - run: | | |
| npm install | |
| npx vite-bundle-visualizer -o reports/bundle-report.html | |
| # salvando o relatório do bundle como um artefato | |
| - uses: actions/upload-artifact@v2 | |
| with: | |
| name: bundle-report | |
| path: reports/bundle-report.html | |
| # instalando dependências e rodando o lighthouse | |
| - run: | | |
| npm install -g @lhci/[email protected] | |
| lhci autorun |