This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
Add-initial-version-of-the-validation-action #5
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
--- | |
# yamllint disable rule:key-ordering rule:line-length | |
name: build-audit | |
on: # yamllint disable-line | |
pull_request: | |
branches: | |
- main | |
types: | |
- assigned | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
build-unminified-site: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Build site with Hugo and audit | |
uses: wildtechgarden/audit-build-action-hugo@main | |
with: | |
base-url: "https://example.com/" | |
config-file: hugo.toml | |
hugo-version: latest | |
upload-site-as: unminified-site | |
source-directory: tests/config | |
- uses: actions/checkout@v4 | |
- name: Validate HTML in output-directory | |
uses: ./ | |
with: | |
use-existing-workspace: "true" | |
validate-html-artifact: | |
needs: build-unminified-site | |
runs-on: ubuntu 22.04 | |
steps: | |
- name: Validate HTML from artifact | |
uses: ./ | |
... |