Skip to content

Release 9.17.0

Release 9.17.0 #783

Workflow file for this run

name: Verify
on: [pull_request, push]
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Build font
run: npm run build
- name: Upload font files
uses: actions/upload-artifact@v3
with:
name: fonts
path: font/
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Check code style
run: npm run lint
testpage:
name: Test page
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Download font files
uses: actions/download-artifact@v3
with:
name: fonts
path: font/
- name: Build test page
run: node scripts/build-testpage.js
- name: Serve testpage
run: ./node_modules/.bin/anywhere -s -p 8080 -d . -f /preview/testpage.html &
- name: Take screenshot of testpage
run: node scripts/preview.js
- name: Upload testpage screenshot
uses: actions/upload-artifact@v3
with:
name: preview
path: screenshot.png