feat: add utility endpoints, legacy route support, SSE timeout, and C… #187
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: Deployment | |
| on: | |
| push: | |
| branches: | |
| - development | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - run: | | |
| npm ci | |
| npx turbo run lint | |
| npx turbo run test | |
| deploy: | |
| runs-on: ubuntu-latest | |
| needs: [test] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Google Cloud Auth | |
| uses: 'google-github-actions/auth@v3' | |
| with: | |
| project_id: 'httparchive' | |
| credentials_json: ${{ secrets.GCP_SA_KEY }} | |
| - uses: hashicorp/setup-terraform@v4 | |
| - name: Terraform Apply | |
| id: apply | |
| run: | | |
| if [ "${GITHUB_REF}" = "refs/heads/main" ]; then | |
| ENV=prod | |
| elif [ "${GITHUB_REF}" = "refs/heads/development" ]; then | |
| ENV=dev | |
| else | |
| echo "Unsupported branch for deployment: ${GITHUB_REF}" | |
| exit 1 | |
| fi | |
| make tf_apply ENV="$ENV" |