Skip to content

Commit

Permalink
Figuring out how GH Actions work.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkphd committed Jan 10, 2024
1 parent 5683b94 commit 90cb2e3
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/test_and_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: DavidAnson/markdownlint-cli2-action@v9
- name: Install codespell
run: |
sudo apt-get install codespell
- name: Check spelling
run: |
make spellcheck
- name: Check top-level Markdown syntax
uses: DavidAnson/markdownlint-cli2-action@v9
- name: Check episode Markdown syntax
run: |
markdownlint-cli2 _episodes
uses: DavidAnson/markdownlint-cli2-action@v9
with:
globs: ./*.md
- name: Check extra Markdown syntax
run: |
markdownlint-cli2 _extra
uses: DavidAnson/markdownlint-cli2-action@v9
with:
globs: _extra/**/*.md

check_lesson_and_build_default:
runs-on: ubuntu-latest
Expand All @@ -34,7 +37,6 @@ jobs:
with:
ruby-version: '3.0.4'
bundler-cache: true
- uses: DavidAnson/markdownlint-cli2-action@v9
- name: Install basic requirements
run: |
# Need this library for nokogiri
Expand All @@ -43,9 +45,6 @@ jobs:
bundle config set path '.vendor/bundle'
bundle config build.nokogiri --use-system-libraries
bundle install
- name: "Lint episode markdown"
run: |
bundle exec mdl _episodes {} \;
- name: "Check lesson for warnings"
run: |
make lesson-check-all
Expand Down Expand Up @@ -75,7 +74,6 @@ jobs:
with:
ruby-version: '3.0.4'
bundler-cache: true
- uses: DavidAnson/markdownlint-cli2-action@v9
- name: Install basic requirements
run: |
# Need this library for nokogiri
Expand All @@ -88,5 +86,6 @@ jobs:
run: |
make --always-make site HPC_JEKYLL_CONFIG=_includes/snippets_library/${{matrix.HPC_JEKYLL_CONFIG}}/_config_options.yml
- name: Lint snippet markdown
run: |
markdownlint-cli2 "_includes/snippets_library/${{matrix.HPC_JEKYLL_CONFIG}}/**/*.snip"
uses: DavidAnson/markdownlint-cli2-action@v9
with:
globs: _includes/snippets_library/${{matrix.HPC_JEKYLL_CONFIG}}/**/*.snip

0 comments on commit 90cb2e3

Please sign in to comment.