Skip to content

Commit

Permalink
Added PR workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Adin Ermie committed Dec 2, 2024
1 parent 80de8cb commit e2474be
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pull-request-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: TechDocs Pull Request Checks

on:
pull_request:
paths:
- "mkdocs.yml"
- "docs/*"

jobs:
techdocs_pr_job:
runs-on: ubuntu-latest

name: Build and Check TechDocs
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build TechDocs
uses: bcgov/devhub-techdocs-publish@stable
id: build_only
with:
strict_validation: 'true'
publish: 'false'
production: 'false'
bucket_name: ${{ secrets.TECHDOCS_S3_BUCKET_NAME }}
s3_access_key_id: ${{ secrets.TECHDOCS_AWS_ACCESS_KEY_ID }}
s3_secret_access_key: ${{ secrets.TECHDOCS_AWS_SECRET_ACCESS_KEY }}
s3_region: ${{ secrets.TECHDOCS_AWS_REGION }}
s3_endpoint: ${{ secrets.TECHDOCS_AWS_ENDPOINT }}
6 changes: 6 additions & 0 deletions .htmltest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CheckLinks: false # don't check URLs in <link> elements
IgnoreDirectoryMissingTrailingSlash: true # don't fail when directory links don't have a trailing slash - techdocs generates a lot of valid links that would cause this check to fail
IgnoreURLs:
- "localhost" # suppress failures of URLs containing localhost
- "https://github.com/bcgov-c"
- "https://login.nimbus.cloud.gov.bc.ca/"

0 comments on commit e2474be

Please sign in to comment.