Use event_status.succeeded for the pass/fail verdict so automatic rer… #189
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
| on: [push] | |
| name: mabl | |
| jobs: | |
| test: | |
| name: Mabl Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Run checks | |
| run: pnpm run check | |
| - name: Run Tests | |
| run: pnpm test | |
| - name: Compile Typescript | |
| run: pnpm run build | |
| - name: Run mabl tests against deployment | |
| id: mabl-test-deployment | |
| uses: ./ | |
| env: | |
| MABL_API_KEY: ${{ secrets.MABL_API_KEY }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| application-id: D6uz-lhAGBYuTTc6Jj_w0Q-a | |
| environment-id: I9tfo2dWd7WSigXcO91feA-e | |
| # Intentionally trigger deprecation warning | |
| uri: 'https://sandbox.mabl.com' | |
| app-url: 'https://storage.googleapis.com/public-test-pages/uptime/canary.html' | |
| browser-types: | | |
| chrome | |
| plan-labels: | | |
| canary | |
| smoke-test | |
| http-headers: | | |
| X-Test-Header-1: 1234 | |
| X-Test-Header-2: 5678 |