From 62f7b16d0b4a57fe72852edad7f36b177597b25e Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 15:08:52 +0000 Subject: [PATCH] GitHub Classroom Autograding Workflow --- .github/workflows/classroom.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/classroom.yml diff --git a/.github/workflows/classroom.yml b/.github/workflows/classroom.yml new file mode 100644 index 0000000..45717f4 --- /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: CheckDigit Test + id: checkdigit-test + uses: education/autograding-command-grader@v1 + with: + test-name: CheckDigit Test + setup-command: '' + command: gradle test + timeout: 10 + - name: Autograding Reporter + uses: education/autograding-grading-reporter@v1 + env: + CHECKDIGIT-TEST_RESULTS: "${{steps.checkdigit-test.outputs.result}}" + with: + runners: checkdigit-test