Skip to content

Commit

Permalink
Merge branch 'main' into ocaml-diff
Browse files Browse the repository at this point in the history
  • Loading branch information
henrylee97 committed Nov 9, 2023
2 parents a740fdd + fec2f34 commit ccaedfe
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build benchmark images
name: Check on PR

on:
pull_request:
Expand Down Expand Up @@ -61,3 +61,29 @@ jobs:
run: |
docker load --input ./image.tar
docker run --rm benchmark:latest /bin/bash -c "cd ${{ steps.read-metadata.outputs.location }}; ${{ steps.read-metadata.outputs.buildCommand }}"
check-all-test-pass-on-pr:
runs-on: ubuntu-latest

permissions:
pull-requests: write

needs:
- build-test

if: always()

steps:
- run: exit 1
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}

- uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: ':mega: All tests passed!'
})

0 comments on commit ccaedfe

Please sign in to comment.