-
Notifications
You must be signed in to change notification settings - Fork 17
37 lines (35 loc) · 943 Bytes
/
pr2.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
name: Database Lint 2
on:
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- id: nodeversion
run: echo "NODE=$(cat .nvmrc)" >> $GITHUB_OUTPUT
- name: restore Cache
uses: actions/cache@master
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- name: Use Node.js ${{steps.nodeversion.outputs.NODE}}
uses: actions/setup-node@v3
with:
node-version: ${{ steps.nodeversion.outputs.NODE }}
- name: install
run: |
yarn
- name: lint
run: |
yarn lint
- name: create-json secret
uses: jsdaniell/[email protected]
with:
name: "key.json"
json: ${{ secrets.GDOC_KEY }}
- name: Test generation
run: |
node src/generate.js test