From 8747d62c2e4149f5d15a4a9b323930b0b1a0008b Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 23:45:50 +0000 Subject: [PATCH] GitHub Classroom Autograding Workflow --- .github/workflows/classroom.yml | 43 +++++++++++++++++++++++++++++++++ 1 file changed, 43 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..ca3d4d5 --- /dev/null +++ b/.github/workflows/classroom.yml @@ -0,0 +1,43 @@ +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: Leap Year + id: leap-year + uses: education/autograding-io-grader@v1 + with: + test-name: Leap Year + setup-command: '' + command: node leap-year.js + input: '' + expected-output: |- + false + false + true + true + false + false + true + true + false + comparison-method: contains + timeout: 10 + max-score: 100 + - name: Autograding Reporter + uses: education/autograding-grading-reporter@v1 + env: + LEAP-YEAR_RESULTS: "${{steps.leap-year.outputs.result}}" + with: + runners: leap-year