Fix TypeCheckingDomain #235
This file contains 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
name: "Run it:test on Comment" | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
build: | |
runs-on: [self-hosted, it_test] | |
if: | | |
github.event.issue.pull_request && contains(github.event.comment.body, '/it:test') && | |
( | |
(github.event.issue.author_association == 'OWNER') || | |
(github.event.issue.author_association == 'COLLABORATOR') || | |
(github.event.issue.author_association == 'CONTRIBUTOR') || | |
(github.event.issue.author_association == 'MEMBER') | |
) | |
steps: | |
- name: Get Repo | |
uses: actions/github-script@v7 | |
id: head-branch-repo | |
with: | |
result-encoding: string | |
script: | | |
const pr = await github.rest.pulls.get({ | |
pull_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
}) | |
console.log(pr.data.head.repo.full_name) | |
return pr.data.head.repo.full_name; | |
- name: Get SHA | |
uses: actions/github-script@v7 | |
id: head-branch-sha | |
with: | |
result-encoding: string | |
script: | | |
const pr = await github.rest.pulls.get({ | |
pull_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
}) | |
console.log(pr.data.head.sha) | |
return pr.data.head.sha; | |
- name: Checkout PR branch | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ steps.head-branch-repo.outputs.result }} | |
ref: ${{ steps.head-branch-sha.outputs.result }} | |
- name: Set latest commit status as pending | |
uses: myrotvorets/set-commit-status-action@655d7d2517bab7f5d1b6e74cd7d5e995264184b1 | |
if: always() | |
with: | |
sha: ${{ steps.head-branch-sha.outputs.result }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
status: pending | |
- name: Run Integration Tests | |
run: sbt -J-Xmx40G "cleanBuild; IntegrationTest / test" | |
- name: Run Cross Language Tests | |
run: sbt -J-Xmx40G "project LLVM; IntegrationTest / test;project ValidateCross; IntegrationTest / test" | |
- name: Set latest commit status as ${{ job.status }} | |
uses: myrotvorets/set-commit-status-action@655d7d2517bab7f5d1b6e74cd7d5e995264184b1 | |
if: always() | |
with: | |
sha: ${{ steps.head-branch-sha.outputs.result }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
status: ${{ job.status }} |