generated from sapphiredev/sapphire-template
-
-
Notifications
You must be signed in to change notification settings - Fork 39
71 lines (63 loc) · 1.92 KB
/
continuous-integration.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Continuous Integration
on:
push:
branches:
- main
pull_request:
jobs:
Linting:
name: Linting
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/checkout@v4
- name: Install dependencies
uses: sapphiredev/.github/actions/install-yarn-dependencies@main
with:
node-version: 20
- name: Build ESLint, Prettier and Utilities
run: |
yarn workspaces foreach \
--all \
--parallel \
--include @sapphire/eslint-config \
--include @sapphire/prettier-config \
--include @sapphire/eslint-plugin-result \
--include @sapphire/result \
--include @sapphire/node-utilities \
--include @sapphire/utilities \
run build
- name: Run ESLint
run: yarn lint --fix=false
build:
name: Building
uses: sapphiredev/.github/.github/workflows/reusable-build.yml@main
docs:
name: Docgen
if: github.event_name == 'pull_request'
uses: sapphiredev/.github/.github/workflows/reusable-yarn-job.yml@main
with:
script-name: docs
test:
name: Tests
uses: sapphiredev/.github/.github/workflows/reusable-tests.yml@main
with:
build: true
enable-sonar: true
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
check-subpath:
name: Check subpaths
uses: sapphiredev/.github/.github/workflows/reusable-yarn-job.yml@main
with:
script-name: build:check-subpath -- --check
check-dynamic-side-effects:
name: Check Dynamic Side Effects
uses: sapphiredev/.github/.github/workflows/reusable-yarn-job.yml@main
with:
script-name: build:dynamic-side-effects -- --check
check-package-index-files:
name: Check Package Index Files
uses: sapphiredev/.github/.github/workflows/reusable-yarn-job.yml@main
with:
script-name: gen-index --parallel -- --check