Skip to content

bump better-sqlite3

bump better-sqlite3 #8

name: Build, Test and Deploy
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
name: Jekyll build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Ruby # See https://www.ruby-lang.org/en/downloads/branches/
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: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "yarn"
- name: Install node packages
run: yarn install --immutable
- name: Build site
run: bundle exec jekyll build
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v1
with:
path: build/
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Ruby # See https://www.ruby-lang.org/en/downloads/branches/
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: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "yarn"
- name: Install node packages
run: yarn install --immutable
- name: Build site
run: bundle exec jekyll build
- name: Restore cache for external links
uses: actions/cache/restore@v3
id: cache
with:
path: cache/
key: ${{ runner.os }}-external-links
- name: Test suite
run: |
yarn run test-build-html-validate
- name: Save cache for external links
uses: actions/cache/save@v3
if: always()
with:
path: cache/
key: ${{ runner.os }}-external-links