From b4e1a0299d258386bd525ed88d07a2b06f0c43f0 Mon Sep 17 00:00:00 2001 From: "github-classroom[bot]" <66690702+github-classroom[bot]@users.noreply.github.com> Date: Fri, 27 Sep 2024 08:54:08 +0000 Subject: [PATCH 01/12] GitHub Classroom Autograding Workflow --- .github/workflows/classroom.yml | 75 +++++++++++++++++++++++++++++++++ 1 file changed, 75 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 000000000..6e5e66840 --- /dev/null +++ b/.github/workflows/classroom.yml @@ -0,0 +1,75 @@ +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: Step 1 Add Headers + id: step-1-add-headers + uses: classroom-resources/autograding-command-grader@v1 + with: + test-name: Step 1 Add Headers + setup-command: sleep 20 + command: "[ $(cat .github/script/STEP) -ge 1 ] || [ $(cat .github/script/STEP) + = X ]" + timeout: 10 + max-score: 1 + - name: Step 2 Add an image + id: step-2-add-an-image + uses: classroom-resources/autograding-command-grader@v1 + with: + test-name: Step 2 Add an image + setup-command: sleep 20 + command: "[ $(cat .github/script/STEP) -ge 2 ] || [ $(cat .github/script/STEP) + = X ]" + timeout: 10 + max-score: 1 + - name: Step 3 Add a code example + id: step-3-add-a-code-example + uses: classroom-resources/autograding-command-grader@v1 + with: + test-name: Step 3 Add a code example + setup-command: sleep 20 + command: "[ $(cat .github/script/STEP) -ge 3 ] || [ $(cat .github/script/STEP) + = X ]" + timeout: 10 + max-score: 1 + - name: Step 4 Make a task list + id: step-4-make-a-task-list + uses: classroom-resources/autograding-command-grader@v1 + with: + test-name: Step 4 Make a task list + setup-command: sleep 20 + command: "[ $(cat .github/script/STEP) -ge 4 ] || [ $(cat .github/script/STEP) + = X ]" + timeout: 10 + max-score: 1 + - name: Step 5 Merge your pull request + id: step-5-merge-your-pull-request + uses: classroom-resources/autograding-command-grader@v1 + with: + test-name: Step 5 Merge your pull request + setup-command: sleep 20 + command: "[ $(cat .github/script/STEP) -ge 5 ] || [ $(cat .github/script/STEP) + = X ]" + timeout: 10 + max-score: 1 + - name: Autograding Reporter + uses: classroom-resources/autograding-grading-reporter@v1 + env: + STEP-1-ADD-HEADERS_RESULTS: "${{steps.step-1-add-headers.outputs.result}}" + STEP-2-ADD-AN-IMAGE_RESULTS: "${{steps.step-2-add-an-image.outputs.result}}" + STEP-3-ADD-A-CODE-EXAMPLE_RESULTS: "${{steps.step-3-add-a-code-example.outputs.result}}" + STEP-4-MAKE-A-TASK-LIST_RESULTS: "${{steps.step-4-make-a-task-list.outputs.result}}" + STEP-5-MERGE-YOUR-PULL-REQUEST_RESULTS: "${{steps.step-5-merge-your-pull-request.outputs.result}}" + with: + runners: step-1-add-headers,step-2-add-an-image,step-3-add-a-code-example,step-4-make-a-task-list,step-5-merge-your-pull-request From a64b82ed82501b6f3ea5f9ced5b602d990a22988 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 27 Sep 2024 08:54:32 +0000 Subject: [PATCH 02/12] Create index.md file --- index.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 index.md diff --git a/index.md b/index.md new file mode 100644 index 000000000..e69de29bb From a6d36a8920d56eae152b49ad0e47f194cd830b2e Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 27 Sep 2024 08:54:33 +0000 Subject: [PATCH 03/12] Update to 1 in STEP and README.md --- .github/script/STEP | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/script/STEP b/.github/script/STEP index 573541ac9..d00491fd7 100644 --- a/.github/script/STEP +++ b/.github/script/STEP @@ -1 +1 @@ -0 +1 From af17e362a9cf9162925bf66d94bfc5d83a9d20d5 Mon Sep 17 00:00:00 2001 From: PilotHartmann74 Date: Fri, 27 Sep 2024 11:14:52 +0200 Subject: [PATCH 04/12] Update index.md --- index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/index.md b/index.md index e69de29bb..16938c0df 100644 --- a/index.md +++ b/index.md @@ -0,0 +1 @@ +# Hello From 58e1866a4d8751d35ffa03abca4157c5cc99e12e Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 27 Sep 2024 09:15:14 +0000 Subject: [PATCH 05/12] Update to 2 in STEP and README.md --- .github/script/STEP | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/script/STEP b/.github/script/STEP index d00491fd7..0cfbf0888 100644 --- a/.github/script/STEP +++ b/.github/script/STEP @@ -1 +1 @@ -1 +2 diff --git a/README.md b/README.md index 0996c0ae3..0d9b86427 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ _Organize ideas and collaborate using Markdown, a lightweight language for text Encourage users to open new tabs for steps! --> -
+

Step 1: Add headers

_Welcome to "Communicate using Markdown"! :wave:_ @@ -67,7 +67,7 @@ _Welcome to "Communicate using Markdown"! :wave:_ Define terms and link to docs.github.com. --> -
+

Step 2: Add an image

_Great job adding headers to the file :sparkles:_ From d5393d6a2da9144e7d932df7218485a37add35cb Mon Sep 17 00:00:00 2001 From: PilotHartmann74 Date: Fri, 27 Sep 2024 11:19:07 +0200 Subject: [PATCH 06/12] Update index.md --- index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/index.md b/index.md index 16938c0df..92ccef993 100644 --- a/index.md +++ b/index.md @@ -1 +1,2 @@ # Hello +![Image of Yaktocat](https://octodex.github.com/images/yaktocat.png) From d328ba36328e59e30f7024e35608c0eb2f84380c Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 27 Sep 2024 09:19:31 +0000 Subject: [PATCH 07/12] Update to 3 in STEP and README.md --- .github/script/STEP | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/script/STEP b/.github/script/STEP index 0cfbf0888..00750edc0 100644 --- a/.github/script/STEP +++ b/.github/script/STEP @@ -1 +1 @@ -2 +3 diff --git a/README.md b/README.md index 0d9b86427..02625e8b5 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ _Welcome to "Communicate using Markdown"! :wave:_ Define terms and link to docs.github.com. --> -
+

Step 2: Add an image

_Great job adding headers to the file :sparkles:_ @@ -100,7 +100,7 @@ Let's add an image. Include descriptive text in the square brackets. This text i Define terms and link to docs.github.com. --> -
+

Step 3: Add a code example

_Great job adding an image to the file :tada:_ From 9bc2cd2d361780b28707a9d4f9b15866184696f6 Mon Sep 17 00:00:00 2001 From: PilotHartmann74 Date: Fri, 27 Sep 2024 11:21:08 +0200 Subject: [PATCH 08/12] Update index.md --- index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.md b/index.md index 92ccef993..344976e40 100644 --- a/index.md +++ b/index.md @@ -1,2 +1,4 @@ # Hello ![Image of Yaktocat](https://octodex.github.com/images/yaktocat.png) +$ git init +Initialized empty Git repository in /Users/skills/Projects/recipe-repository/.git/ From 35a2a384b62e9b1a59f2bb92fcbb0fc62efe622c Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 27 Sep 2024 09:21:31 +0000 Subject: [PATCH 09/12] Update to 4 in STEP and README.md --- .github/script/STEP | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/script/STEP b/.github/script/STEP index 00750edc0..b8626c4cf 100644 --- a/.github/script/STEP +++ b/.github/script/STEP @@ -1 +1 @@ -3 +4 diff --git a/README.md b/README.md index 02625e8b5..db8335c68 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ Let's add an image. Include descriptive text in the square brackets. This text i Define terms and link to docs.github.com. --> -
+

Step 3: Add a code example

_Great job adding an image to the file :tada:_ @@ -139,7 +139,7 @@ Initialized empty Git repository in /Users/skills/Projects/recipe-repository/.gi Define terms and link to docs.github.com. --> -
+

Step 4: Make a task list

_Great job adding a code example to the file :partying_face:_ From 74a6546a22121af25a135257b4d9554338609cd1 Mon Sep 17 00:00:00 2001 From: PilotHartmann74 Date: Fri, 27 Sep 2024 11:24:06 +0200 Subject: [PATCH 10/12] Update index.md --- index.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.md b/index.md index 344976e40..733e5b5a3 100644 --- a/index.md +++ b/index.md @@ -2,3 +2,6 @@ ![Image of Yaktocat](https://octodex.github.com/images/yaktocat.png) $ git init Initialized empty Git repository in /Users/skills/Projects/recipe-repository/.git/ +- [x] Turn on GitHub Pages +- [x] Outline my portfolio +- [ ] Introduce myself to the world From 34011c9fa54ed2714a19c0f00fa9b496db1c3697 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 27 Sep 2024 09:24:26 +0000 Subject: [PATCH 11/12] Update to 5 in STEP and README.md --- .github/script/STEP | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/script/STEP b/.github/script/STEP index b8626c4cf..7ed6ff82d 100644 --- a/.github/script/STEP +++ b/.github/script/STEP @@ -1 +1 @@ -4 +5 diff --git a/README.md b/README.md index db8335c68..b57fba9e0 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ Initialized empty Git repository in /Users/skills/Projects/recipe-repository/.gi Define terms and link to docs.github.com. --> -
+

Step 4: Make a task list

_Great job adding a code example to the file :partying_face:_ @@ -187,7 +187,7 @@ GitHub Actions went ahead and made a branch for you. So you'll need to add to th Define terms and link to docs.github.com. --> -
+

Step 5: Merge your pull request

_Great job adding a task list to the file :heart:_ From 5fac74e52ff16f2f4407fce9d4818f704a82d0dd Mon Sep 17 00:00:00 2001 From: PilotHartmann74 Date: Fri, 27 Sep 2024 11:24:42 +0200 Subject: [PATCH 12/12] Update index.md