Skip to content

Added determinism inspection workflow #2

Added determinism inspection workflow

Added determinism inspection workflow #2

Workflow file for this run

name: Determinism
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
jobs:
check:
strategy:
fail-fast: false
matrix:
# Create a job for each target triple
include:
- os: macos-latest
test_args: ""
- os: ubuntu-latest
test_args: ""
- os: windows-latest
test_args: "--work-dir=D:/dtm"
runs-on: ${{ matrix.os }}
name: Check (${{ matrix.os }})
steps:
- uses: actions/checkout@master
- name: Run tests
continue-on-error: true
run: bazel run --compilation_mode=opt '//test/determinism:tester' '--' test ${{ matrix.test_args }}
- name: Summarize (unix)
if: runner.os != 'Windows'
run: |
echo '<details>' >> ${GITHUB_STEP_SUMMARY}
echo '```json' >> ${GITHUB_STEP_SUMMARY}
cat results.json >> ${GITHUB_STEP_SUMMARY}
echo '```' >> ${GITHUB_STEP_SUMMARY}
echo '</details>' >> ${GITHUB_STEP_SUMMARY}
- name: Summarize (windows)
if: runner.os == 'Windows'
run: |
echo ^<details^> >> %GITHUB_STEP_SUMMARY
echo ```json >> %GITHUB_STEP_SUMMARY
cat results.json >> %GITHUB_STEP_SUMMARY
echo ``` >> %GITHUB_STEP_SUMMARY
echo ^</details^> >> %GITHUB_STEP_SUMMARY