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/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..81fe416 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +# 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 diff --git a/README.md b/README.md index 05a44e7..a56fec7 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:_