Commit 8fe7c7a0 authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

build: notify from notify/test (#6597)

* build: notify from notify/test

* debug

* debug2

* revert debugs
parent 41113e6e
...@@ -16,6 +16,8 @@ on: ...@@ -16,6 +16,8 @@ on:
jobs: jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment:
name: ${{ github.ref_name == 'main' && 'notify/test' }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/setup - uses: ./.github/actions/setup
...@@ -30,10 +32,12 @@ jobs: ...@@ -30,10 +32,12 @@ jobs:
uses: ./.github/actions/report uses: ./.github/actions/report
with: with:
name: Lint name: Lint
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TEST_REPORTER_WEBHOOK }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
typecheck: typecheck:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment:
name: ${{ github.ref_name == 'main' && 'notify/test' }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/setup - uses: ./.github/actions/setup
...@@ -48,10 +52,12 @@ jobs: ...@@ -48,10 +52,12 @@ jobs:
uses: ./.github/actions/report uses: ./.github/actions/report
with: with:
name: Typecheck name: Typecheck
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TEST_REPORTER_WEBHOOK }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
deps-tests: deps-tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment:
name: ${{ github.ref_name == 'main' && 'notify/test' }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/setup - uses: ./.github/actions/setup
...@@ -60,10 +66,12 @@ jobs: ...@@ -60,10 +66,12 @@ jobs:
uses: ./.github/actions/report uses: ./.github/actions/report
with: with:
name: Dependency checks name: Dependency checks
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TEST_REPORTER_WEBHOOK }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
unit-tests: unit-tests:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment:
name: ${{ github.ref_name == 'main' && 'notify/test' }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: ./.github/actions/setup - uses: ./.github/actions/setup
...@@ -84,7 +92,7 @@ jobs: ...@@ -84,7 +92,7 @@ jobs:
uses: ./.github/actions/report uses: ./.github/actions/report
with: with:
name: Unit tests name: Unit tests
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TEST_REPORTER_WEBHOOK }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
build-e2e: build-e2e:
runs-on: ubuntu-latest runs-on: ubuntu-latest
...@@ -115,6 +123,8 @@ jobs: ...@@ -115,6 +123,8 @@ jobs:
cypress-test-matrix: cypress-test-matrix:
needs: [build-e2e, cypress-rerun] needs: [build-e2e, cypress-rerun]
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment:
name: ${{ github.ref_name == 'main' && 'notify/test' }}
container: cypress/browsers:node-18.14.1-chrome-111.0.5563.64-1-ff-111.0-edge-111.0.1661.43-1 container: cypress/browsers:node-18.14.1-chrome-111.0.5563.64-1-ff-111.0-edge-111.0.1661.43-1
strategy: strategy:
fail-fast: false fail-fast: false
...@@ -167,17 +177,17 @@ jobs: ...@@ -167,17 +177,17 @@ jobs:
verbose: true verbose: true
flags: e2e-tests flags: e2e-tests
- if: failure() && github.ref_name == 'main'
uses: ./.github/actions/report
with:
name: Cypress tests
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
# Included as a single job to check for cypress-test-matrix success, as a matrix cannot be checked. # Included as a single job to check for cypress-test-matrix success, as a matrix cannot be checked.
cypress-tests: cypress-tests:
if: always() if: always()
needs: [cypress-test-matrix] needs: [cypress-test-matrix]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3
- if: needs.cypress-test-matrix.result != 'success' - if: needs.cypress-test-matrix.result != 'success'
run: exit 1 run: exit 1
- if: failure() && github.ref_name == 'main'
uses: ./.github/actions/report
with:
name: Cypress tests
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TEST_REPORTER_WEBHOOK }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment