diff --git a/.github/script/STEP b/.github/script/STEP index d00491f..b8626c4 100644 --- a/.github/script/STEP +++ b/.github/script/STEP @@ -1 +1 @@ -1 +4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5568aaa --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +# 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: + runs-on: ubuntu-latest + steps: + - 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/ diff --git a/README.md b/README.md index b9639ca..aad8c03 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:_ @@ -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 @@ -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:_