-
Notifications
You must be signed in to change notification settings - Fork 1.6k
47 lines (43 loc) · 1.13 KB
/
nodejs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Node CI
on:
pull_request:
types: [opened, synchronize, reopened]
env:
NEXT_PUBLIC_TINA_CLIENT_ID: ${{ secrets.NEXT_PUBLIC_TINA_CLIENT_ID }}
TINA_TOKEN: ${{ secrets.TINA_TOKEN }}
NEXT_PUBLIC_TINA_BRANCH: ${{ github.head_ref }}
NODE_OPTIONS: "--max_old_space_size=4096"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: yarn install, build, and test
run: |
yarn install
yarn build
yarn lint
yarn test
env:
CI: true
- name: yarn export
run: |
yarn export
env:
CI: true
- name: 📉 Check HTML
uses: anishathalye/proof-html@v1.4.0
with:
directory: './out'
enforce_https: false
check_img_http: false
check_external_hash: false
empty_alt_ignore: true
url_ignore_re: '/.+\/(blog|404)\/.+/'