From 4d9b7c08f53c8090769586e55a01d5bdcc84d4ad Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 08:10:09 +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..4346167 --- /dev/null +++ b/.github/workflows/classroom.yml @@ -0,0 +1,30 @@ +name: Autograding Tests +'on': +- push +- 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: Test Conditions + id: test-conditions + uses: classroom-resources/autograding-command-grader@v1 + with: + test-name: Test Conditions + setup-command: npm install + command: npm run test run conditions + timeout: 10 + max-score: 4 + - name: Autograding Reporter + uses: classroom-resources/autograding-grading-reporter@v1 + env: + TEST-CONDITIONS_RESULTS: "${{steps.test-conditions.outputs.result}}" + with: + runners: test-conditions