Ignore web API localhost url exemples #135
Workflow file for this run
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
name: Test | |
on: | |
push: | |
branches-ignore: | |
- main # tests will be launched by workflow_call from the deploy workflow | |
pull_request: | |
types: [ opened, reopened ] | |
workflow_call: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: npm | |
- run: npm ci | |
- run: npm run lint:markdown | |
- run: npm run lint:css | |
- run: npm run lint:js | |
- name: Set Hugo up | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.108.0' | |
extended: true # Prevent error building site: POSTCSS: failed to transform, see https://gohugo.io/troubleshooting/faq/#i-get-this-feature-is-not-available-in-your-current-hugo-version | |
- name: Clean public dir | |
run: rm -rf public | |
- name: Print Hugo info | |
run: | | |
echo "hugo env" | |
hugo env | |
echo "hugo config" | |
hugo config | |
- name: Build with Hugo | |
run: hugo --minify | |
- run: npm run test:links |