Test markdown linting - 14 #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow runs the init.sh script to test setting up | |
# the starter pack. | |
# You shouldn't run this workflow on any repos that use the | |
# starter pack. | |
name: Test starter pack | |
on: | |
- pull_request | |
- push | |
jobs: | |
test-root: | |
name: Test in root folder | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Run init and build | |
env: | |
default_filetype_choice: md # don't prompt for user choice | |
run: sp-tests/run-init-and-build.sh | |
- name: Add some files, build, and test | |
run: sp-tests/add-files-and-build.sh | |
- name: Run inclusive language check | |
if: success() || failure() | |
run: sp-tests/check-inclusive-language.sh | |
- name: Run link check | |
if: success() || failure() | |
run: sp-tests/check-links.sh | |
- name: Run spelling check | |
if: success() || failure() | |
run: sp-tests/check-spelling.sh | |
- name: Run styleguide check (expected to fail) | |
continue-on-error: true | |
if: success() || failure() | |
run: sp-tests/check-styleguide.sh | |
- name: Run accessibility check | |
if: success() || failure() | |
run: sp-tests/check-accessibility.sh | |
- name: Clean up | |
if: success() || failure() | |
run: sp-tests/clean-up.sh | |
test-docs: | |
name: Test on docs folder | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Run init and build | |
env: | |
default_filetype_choice: md # don't prompt for user choice | |
run: sp-tests/run-init-and-build.sh docs | |
- name: Add some files, build, and test | |
run: sp-tests/add-files-and-build.sh docs | |
- name: Run inclusive language check | |
if: success() || failure() | |
run: sp-tests/check-inclusive-language.sh docs | |
- name: Run link check | |
if: success() || failure() | |
run: sp-tests/check-links.sh docs | |
- name: Run spelling check | |
if: success() || failure() | |
run: sp-tests/check-spelling.sh docs | |
- name: Run styleguide check (expected to fail) | |
continue-on-error: true | |
run: sp-tests/check-styleguide.sh docs | |
- name: Run accessibility check | |
if: success() || failure() | |
run: sp-tests/check-accessibility.sh docs | |
- name: Clean up | |
if: success() || failure() | |
run: sp-tests/clean-up.sh |