Skip to content

VIP-00-0000: VIP Purpose And Guidelines #6

VIP-00-0000: VIP Purpose And Guidelines

VIP-00-0000: VIP Purpose And Guidelines #6

name: "Pull Request Checks"
on:
pull_request:
jobs:
##
# validation
##
validate_pr_title:
name: "Validate PR Title"
runs-on: ubuntu-latest
environment: development
steps:
- name: "🛎 Checkout"
uses: actions/checkout@v4
- name: "✅ Validate"
run: ./scripts/validate_pr_title.sh "${{ github.event.pull_request.title }}"
##
# build
##
build:
name: "Build"
needs: [ validate_pr_title ]
runs-on: ubuntu-latest
environment: development
steps:
- name: "🛎 Checkout"
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: "🔧 Setup"
uses: ./.github/actions/use-dependencies
- name: "🏗️ Build"
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
run: |
hugo \
--gc \
--minify