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 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 diff --git a/index.md b/index.md new file mode 100644 index 000000000..8121168a8 --- /dev/null +++ b/index.md @@ -0,0 +1,31 @@ +# Welcome to "Communicate using Markdown Practice"! 👋 + +## What is Markdown? +Markdown is a lightweight syntax for communicating on GitHub. You can format text to add heading, lists, bold, italics, tables, and many other stylings. + +## Where can you use Markdown? +You can use Markdown in most places around GitHub: +- Comments in issues, pull requests, and discussions +- Files with the .md or .markdown extension +- Sharing snippets of text in Gists + +## What is a header? +A header is a larger bit of text at the beginning of a section. There are six sizes: +- # Hello +- ## Hello World +- ### Hello World Hi +- #### Hello World Hi Hello +- ##### Hello World Hi Hello World +- ###### Hello World Hi Hello World Hi + + +![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