Skip to content

Deflake

Deflake #194

Workflow file for this run

name: Deflake
on:
schedule:
- cron: '0 12 * * *'
workflow_dispatch:
permissions:
contents: read
jobs:
deflake:
runs-on: ubuntu-latest
permissions:
contents: read
statuses: write
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: ./.github/actions/install-deps
- name: Running tests 5 times to find flaky tests
id: run-deflake
run: make deflake
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- if: always()
name: Post commit status
run: |
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \
-d '{"state":"${{ steps.run-deflake.outcome }}","target_url":"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}","context":"Deflake Tests (cron)"}'