This repository has been archived by the owner on Sep 19, 2023. It is now read-only.
Set html tag lang attribute #255
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: push | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
# https://github.com/actions/cache/blob/main/examples.md#node---npm | |
- name: Get npm cache directory | |
id: npm-cache-dir | |
run: | | |
echo "dir=$(npm config get cache)" >> "${GITHUB_OUTPUT}" | |
- name: Set up dependency cache | |
uses: actions/cache@v3 | |
id: npm-cache | |
with: | |
path: ${{ steps.npm-cache-dir.outputs.dir }} | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: npm ci | |
# Having the Build step before the Lint step is intentional because we | |
# must generate `*.css.d.ts` files first | |
- name: Build | |
run: npm run build | |
- name: Lint | |
run: | | |
npm run lint | |
npm run typecheck |