diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 000000000..82789ee23 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,34 @@ +name: test +on: + push: + branches: + - report-ci-cd-failure + workflow_dispatch: + +permissions: + id-token: write + +jobs: + backend-ci: + runs-on: ubuntu-latest + services: + postgresql: + image: postgres:14.5-alpine + ports: + - 15432:5432 + env: + POSTGRES_USER: test + POSTGRES_PASSWORD: test + POSTGRES_DB: scc_test + + defaults: + run: + working-directory: app-server + + steps: + - uses: actions/checkout@v3 + + - name: Notify build failure to slack + run: | + CURRENT_GITHUB_ACTION_RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + curl -X POST -H 'Content-type: application/json' --data "{\"text\":\"[TESTTEST] (<$CURRENT_GITHUB_ACTION_RUN_URL|github action run url>)\"}' https://hooks.slack.com/services/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