From 47cfd8386e01f4d0a76e21f02da7f9981048a096 Mon Sep 17 00:00:00 2001 From: nikhilitis <64936882+nikhilitis@users.noreply.github.com> Date: Sat, 29 Oct 2022 23:30:42 -0700 Subject: [PATCH 1/2] Create ci.yml --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..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 From ccc03514030e4d5a358db521dd1e0607dd8c8b82 Mon Sep 17 00:00:00 2001 From: github-actions Date: Sun, 30 Oct 2022 06:30:55 +0000 Subject: [PATCH 2/2] 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 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:_