diff --git a/.github/workflows/classroom.yml b/.github/workflows/classroom.yml new file mode 100644 index 0000000..b371e54 --- /dev/null +++ b/.github/workflows/classroom.yml @@ -0,0 +1,30 @@ +name: Autograding Tests +'on': +- push +- 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: LightBoard Test + id: lightboard-test + uses: education/autograding-command-grader@v1 + with: + test-name: LightBoard Test + setup-command: '' + command: gradle test + timeout: 10 + - name: Autograding Reporter + uses: education/autograding-grading-reporter@v1 + env: + LIGHTBOARD-TEST_RESULTS: "${{steps.lightboard-test.outputs.result}}" + with: + runners: lightboard-test