chore(deps-dev): bump handlebars in /application/backend #813
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: Fleet Routing App CI | |
| on: | |
| push: | |
| jobs: | |
| # detect changes | |
| changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| backend: ${{ steps.filter.outputs.backend }} | |
| frontend: ${{ steps.filter.outputs.frontend }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: dorny/paths-filter@v2 | |
| id: filter | |
| with: | |
| filters: | | |
| backend: | |
| - 'application/backend/**' | |
| frontend: | |
| - 'application/frontend/**' | |
| # backend checks | |
| check-backend: | |
| needs: changes | |
| if: ${{ needs.changes.outputs.backend == 'true' }} | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: application/backend | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js v22 LTS | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| cache-dependency-path: application/backend/package-lock.json | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm test | |
| # frontend checks | |
| check-frontend: | |
| needs: changes | |
| if: ${{ needs.changes.outputs.frontend == 'true' }} | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: application/frontend | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js v22 LTS | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| cache-dependency-path: application/frontend/package-lock.json | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm run style-check | |
| - run: Xvfb :99 & | |
| - run: npm run test -- --watch=false --progress=false --browsers=ChromeHeadlessCI --code-coverage | |
| env: | |
| DISPLAY: ':99' | |
| # build container image | |
| build-container: | |
| needs: | |
| - check-backend | |
| - check-frontend | |
| if: | | |
| always() && | |
| (needs.check-backend.result == 'success' || needs.check-backend.result == 'skipped') && | |
| (needs.check-frontend.result == 'success' || needs.check-frontend.result == 'skipped') | |
| runs-on: ubuntu-latest | |
| env: | |
| SNAPSHOT_REGISTRY: ${{ secrets.SNAPSHOT_REGISTRY }} | |
| COMMIT_TAG: ${{ github.sha }} | |
| steps: | |
| - run: echo "COMMIT_TAG=$(echo $COMMIT_TAG | cut -c 1-7)" >> $GITHUB_ENV | |
| - uses: actions/checkout@v3 | |
| - uses: google-github-actions/auth@v2 | |
| with: | |
| credentials_json: ${{ secrets.GCLOUD_SERVICE_ACCOUNT_JSON }} | |
| - uses: google-github-actions/setup-gcloud@v2 | |
| - run: gcloud auth configure-docker us-docker.pkg.dev | |
| - run: make build | |
| - run: make push | |
| # push container image | |
| tag-release: | |
| if: ${{ github.ref_type == 'tag' }} | |
| needs: | |
| - build-container | |
| runs-on: ubuntu-latest | |
| env: | |
| SNAPSHOT_REGISTRY: ${{ secrets.SNAPSHOT_REGISTRY }} | |
| RELEASE_REGISTRY: ${{ secrets.RELEASE_REGISTRY }} | |
| COMMIT_TAG: ${{ github.sha }} | |
| RELEASE_TAG: ${{ github.ref_name }} | |
| steps: | |
| - run: echo "COMMIT_TAG=$(echo $COMMIT_TAG | cut -c 1-7)" >> $GITHUB_ENV | |
| - uses: actions/checkout@v3 | |
| - uses: google-github-actions/auth@v2 | |
| with: | |
| credentials_json: ${{ secrets.GCLOUD_SERVICE_ACCOUNT_JSON }} | |
| - uses: google-github-actions/setup-gcloud@v2 | |
| - run: gcloud auth configure-docker us-docker.pkg.dev | |
| - run: make release | |
| # terraform checks |