Skip to content
Open

Pog! #111

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/script/STEP
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0
1
75 changes: 75 additions & 0 deletions .github/workflows/classroom.yml
Original file line number Diff line number Diff line change
@@ -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
72 changes: 72 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
### Headers

# This is a test header for `H1`
## This is a test header for `H2`
###### This is a test header for `H6`

---

### Showing Image

![Image of Yaktocat](https://cdn.discordapp.com/attachments/1041951848107614229/1287776953557848095/OMEN.jpg?ex=66f2c73f&is=66f175bf&hm=68ef62c7edab1df1b6b78be772dd757f4dcf6903166b4a50abfd367ba5f9da5a&)

---

### Adding code blocks

```ts
function addNumbers(input: string) {
const numbers = input.split(',').map(n => parseInt(n));
if (!numbers.length) {
throw new Error('No numbers provided, make sure the input is a string of numbers separated by commas');
}

return numbers.reduce((total, n) => total + n);
}
```

---

### Listing

- [x] I want to die
- [x] Sometimes it's like going through hell
- [ ] Life is complete 😃

---

### Creating A Table

| Something | Something |
| --------- | --------- |
| Cell | Cell |
| Cell | Cell |

---

### Formatting content

| Index | To use | Description | Example |
| :-----: | :-----: | :----------- | :-------: |
| 1 | `**` | Used to show content bold | `**Ello**` • **Ello** |
| 2 | `_` | Used to show content in italics | `_Kiwii_` • _Kiwii_ |
| 3 | `*` | Used to show content in italics | `*Kiwii 2*` • *Kiwii 2* |
| 4 | `<ins>` | Used to show an underline | `<ins>Text<ins>` • <ins>Text<ins> |

---

### Creating a collapsed section

<details>
<summary>This is an amazing section, click here to be amazed! </summary>

### *Ofc we need a header for this section bruh*

So let me tell you about this ***Amazing thing!***
> You got tricked to click on it 🤣

```js
console.log("Bro got tricked, [+1] for Kevin!");
```

</details>