-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 750 Bytes
/
main.yml
File metadata and controls
34 lines (28 loc) · 750 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
files-up-to-date:
runs-on: ubuntu-latest
steps:
- name: Checkout commit
uses: actions/checkout@v3
- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: "`yarn format` changes committed?"
run: yarn format:check
- name: "`yarn gen-readme` changes committed?"
run: |
yarn gen-readme
git diff --exit-code