repository_dispatch #1
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
| name: Autograding Tests | |
| 'on': | |
| - workflow_dispatch | |
| - repository_dispatch | |
| permissions: | |
| checks: write | |
| actions: read | |
| contents: read | |
| jobs: | |
| run-autograding-tests: | |
| runs-on: ubuntu-latest | |
| if: github.actor != 'github-classroom[bot]' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Digits Test | |
| id: digits-test | |
| uses: classroom-resources/autograding-command-grader@v1 | |
| with: | |
| test-name: Digits Test | |
| setup-command: '' | |
| command: gradle test | |
| timeout: 10 | |
| - name: Autograding Reporter | |
| uses: classroom-resources/autograding-grading-reporter@v1 | |
| env: | |
| DIGITS-TEST_RESULTS: "${{steps.digits-test.outputs.result}}" | |
| with: | |
| runners: digits-test |