Skip to content

fix(content): fix root.startups key (2) #37924

fix(content): fix root.startups key (2)

fix(content): fix root.startups key (2) #37924

Workflow file for this run

name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Lint markdown pages
run: yarn --cwd=ci && node ci/tests-fiches.mjs
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.4
bundler-cache: true
- name: Install npm dependencies
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- run: npm ci
- name: Unit tests
run: bundle exec rspec
# - name: Check data structure
# run: make validate
- name: "Check authors file name structure (first_name.last_name.md)"
run: |
if ls content/_authors | grep --line-regexp --invert-match '[a-z_.-]\+\.[a-z_.-]\+\.md'
then cat <<EOF
One or more authors do not have the expected structure.
Contact a website administrator if your generated author file breaks the validator.
Notes:
A dot (.) can only appear as a separator between the first and the last names.
Dashes in names are kept as-is.
Spaces are replaced by underscores (_).
File extension must be '.md'
EOF
exit 1
fi
- name: Check Jekyll configuration
run: bundle exec jekyll doctor
- name: Jekyll build
run: bundle exec jekyll build --trace
- name: Check HTML common mistakes
run: make html-proofer
- name: HTML5 Validator
uses: Cyb3r-Jak3/html5validator-action@master
with:
root: _site
skip_git_check: true
- name: Lint JSON API pages
run: bundle exec jsonlint _site/api/v*/*.json
- name: Wait for server to start
run: |
(bundle exec jekyll serve --no-watch --skip-initial-build)&
while ! curl --silent http://localhost:4000
do sleep 1
done