-
Notifications
You must be signed in to change notification settings - Fork 38
40 lines (37 loc) · 942 Bytes
/
pr.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
name: Pull Request
on:
pull_request: {}
push:
branches:
- main
workflow_dispatch: {}
workflow_call:
secrets:
PINECONE_API_KEY:
required: true
jobs:
basic-hygiene:
name: Linting, formatting, documentation, etc
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- name: Prettier
run: npm run format
- name: Check for prettier changes
run: |
git diff --exit-code >/dev/null 2>&1
EXIT_CODE=$?
if [ $EXIT_CODE -ne 0 ]; then
echo "Prettier changes detected. Please run 'npm run format' and commit the changes."
exit 1
fi
- name: ESLint
run: npm run lint
- name: TypeDoc
uses: ./.github/actions/build-docs
testing:
uses: './.github/workflows/testing.yml'
secrets: inherit