Skip to content

teak htmlproofer

teak htmlproofer #93

Workflow file for this run

name: "Build & Test"
on:
- pull_request
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2" # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: build
run: JEKYLL_ENV=production bundle exec jekyll build --verbose --future --destination site
- run: echo "coffeeanddata.ca" > ./site/CNAME
- name: test
run: bundle exec htmlproofer --assume-extension .html --allow-hash-href --typhoeus '{"ssl_verifypeer":false}' --no-enforce_https --no-check-external-hash --ignore-status-code 999,403,500 --ignore-urls "/twitter*/,/gstatic*/,/google*/,/tag*/" ./site
sonarQube:
name: SonarQube
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: sonarsource/sonarqube-scan-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
deploy:
runs-on: ubuntu-latest
needs: test
environment:
name: staging
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2" # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: build
run: JEKYLL_ENV=staging bundle exec jekyll build --verbose --config _config.yml,staging.yml --future --destination site
- uses: AbleLincoln/[email protected]
with:
host: ${{ secrets.SERVER_IP }}
port: ${{ secrets.SERVER_PORT }}
username: ${{ secrets.USERNAME }}
privateKey: ${{ secrets.KEY }}
sourceDir: ./site
targetDir: ./upload/