From e336c5e789c503dd55ce086b09e407de0e54b371 Mon Sep 17 00:00:00 2001 From: SuperStephenProMax <121482770+SuperStephenProMax@users.noreply.github.com> Date: Tue, 3 Jan 2023 17:43:54 +0800 Subject: [PATCH 1/6] Create ci.yml --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..eac41c8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - name: Run markdown lint + run: | + npm install remark-cli remark-preset-lint-consistent + npx remark . --use remark-preset-lint-consistent --frail From ffcbb5331c11b7beccfbf3c38a8812e9623b4694 Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 3 Jan 2023 09:44:10 +0000 Subject: [PATCH 2/6] 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 d00491f..0cfbf08 100644 --- a/.github/script/STEP +++ b/.github/script/STEP @@ -1 +1 @@ -1 +2 diff --git a/README.md b/README.md index b9639ca..1d6ff76 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ endstep0--> Encourage users to open new tabs for steps! --> -
+

Step 1: Add a test workflow

_Welcome to "GitHub Actions: Continuous Integration"! :wave:_ @@ -95,7 +95,7 @@ First, let's add a workflow to lint our Markdown files in this repository. Define terms and link to docs.github.com. --> -
+

Step 2: Fix the test

_Great job adding the templated workflow! :tada:_ From 9c723b4f6031db6c76be39205e44d73324892f07 Mon Sep 17 00:00:00 2001 From: SuperStephenProMax <121482770+SuperStephenProMax@users.noreply.github.com> Date: Tue, 3 Jan 2023 17:49:50 +0800 Subject: [PATCH 3/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d6ff76..603d7a3 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ When the tests finish, you'll see a red X :x: or a green check mark :heavy_check -*By looking at the logs, can you identify which tests failed?* To find it, go to one of the failed builds and scrolling through the log. Look for a section that lists all the unit tests. We're looking for the name of the test with an "x". +_By looking at the logs, can you identify which tests failed?_ To find it, go to one of the failed builds and scrolling through the log. Look for a section that lists all the unit tests. We're looking for the name of the test with an "x". screenshot of a sample build log with the names of the tests blurred out From 9da674f5a1ea53b48726093896ea3926bbf5b6c9 Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 3 Jan 2023 09:50:01 +0000 Subject: [PATCH 4/6] 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 0cfbf08..00750ed 100644 --- a/.github/script/STEP +++ b/.github/script/STEP @@ -1 +1 @@ -2 +3 diff --git a/README.md b/README.md index 603d7a3..87adb69 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ First, let's add a workflow to lint our Markdown files in this repository. Define terms and link to docs.github.com. --> -
+

Step 2: Fix the test

_Great job adding the templated workflow! :tada:_ @@ -139,7 +139,7 @@ If the checks don't appear or if the checks are stuck in progress, there's a few Define terms and link to docs.github.com. --> -
+

Step 3: Upload test reports

_The workflow has finished running! :sparkles:_ From cc2f41c82a5e1f2439464bd10e69fb5f2395bb77 Mon Sep 17 00:00:00 2001 From: SuperStephenProMax <121482770+SuperStephenProMax@users.noreply.github.com> Date: Tue, 3 Jan 2023 17:54:50 +0800 Subject: [PATCH 5/6] Update ci.yml --- .github/workflows/ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eac41c8..5568aaa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,14 +17,16 @@ on: jobs: # This workflow contains a single job called "build" build: - # The type of runner that the job will run on runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 + - name: Run markdown lint run: | npm install remark-cli remark-preset-lint-consistent npx remark . --use remark-preset-lint-consistent --frail + + - uses: actions/upload-artifact@v3 + with: + name: remark-lint-report + path: public/ From fc0cc3ac339d1c50e278f0c5521e79109293ab7f Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 3 Jan 2023 09:55:00 +0000 Subject: [PATCH 6/6] 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 00750ed..b8626c4 100644 --- a/.github/script/STEP +++ b/.github/script/STEP @@ -1 +1 @@ -3 +4 diff --git a/README.md b/README.md index 87adb69..aad8c03 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ If the checks don't appear or if the checks are stuck in progress, there's a few Define terms and link to docs.github.com. --> -
+

Step 3: Upload test reports

_The workflow has finished running! :sparkles:_ @@ -181,7 +181,7 @@ Similar to the upload action to send artifacts to the storage, you can use anoth Define terms and link to docs.github.com. --> -
+

Step 4: Add branch protections

_Great job uploading test reports! :partying_face:_