-
Notifications
You must be signed in to change notification settings - Fork 383
44 lines (40 loc) · 1.04 KB
/
ci.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
name: CI
on:
push:
branches:
- master
pull_request:
env:
node_version: 18
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: yarn
node-version: ${{ env.node_version }}
- run: yarn install --frozen-lockfile
- run: yarn build
vale:
name: runner/vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: errata-ai/vale-action@reviewdog
with:
version: 2.29.4
files: '[
"docs/",
"README.md",
"style-checker-notes.md",
"style-guide.md"
]'
fail_on_error: true
reporter: github-pr-check
vale_flags: "--minAlertLevel=error"
env:
# Required, set by GitHub actions automatically:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}