-
-
Notifications
You must be signed in to change notification settings - Fork 19
35 lines (31 loc) · 787 Bytes
/
validate.yml
File metadata and controls
35 lines (31 loc) · 787 Bytes
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
name: Validate
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.17.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g yarn
- run: yarn install --frozen-lockfile
- run: yarn build
- run: git status
- name: Check for changes
run: |
if [ $(git status --porcelain | wc -l) -ne 0 ]; then
echo "::error::Changes detected (modified or added files)"
exit 1
fi
- run: yarn validate
env:
CI: true