forked from confused-Techie/atom-backend
-
-
Notifications
You must be signed in to change notification settings - Fork 11
45 lines (34 loc) · 956 Bytes
/
ci-standards.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
45
# GitHub Action to include all documentation that needs to generated, and all linting
# that needs to be done into a single PR.
name: CI - Standards
on:
push:
branches: [ "main" ]
jobs:
standards:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout the latest code
uses: actions/checkout@v4
- name: Setup NodeJS - ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install Dependencies
run: npm install
- name: Lint Codebase
run: npm run lint
- name: Generate JSDocs
run: npm run js-docs
- name: Generate Complexity Reports
run: npm run complex
- name: Commit All Changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: GH Action Standards