File tree Expand file tree Collapse file tree 3 files changed +41
-48
lines changed
Expand file tree Collapse file tree 3 files changed +41
-48
lines changed Original file line number Diff line number Diff line change 1717 IMAGE_NAME : ${{ github.repository }}
1818
1919jobs :
20- pre-commit :
21- name : Linting Checks
22- runs-on : ubuntu-22.04
23- steps :
24- - name : Checkout repository
25- uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
26-
27- - name : Install python
28- uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
29- with :
30- python-version : 3.x
31-
32- - name : Check files
33- uses : pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
34-
35- - name : Install pnpm
36- uses : pnpm/action-setup@a8198c4bff370c8506180b035930dea56dbd5288 # v5
37- with :
38- version : 10
39- run_install : false
40-
41- - name : Setup Node.js
42- uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
43- with :
44- node-version : 24
45- cache : ' pnpm'
46-
47- - name : Install dependencies
48- run : pnpm install
4920
50- - name : Lint frontend
51- run : pnpm run lint
5221
5322 build :
5423 name : Docker Build & Push
5524 if : github.repository == 'gethomepage/homepage'
5625 runs-on : ubuntu-22.04
57- needs : [ pre-commit ]
5826 permissions :
5927 contents : read
6028 packages : write
Original file line number Diff line number Diff line change @@ -14,25 +14,11 @@ permissions:
1414 id-token : write
1515
1616jobs :
17- pre-commit :
18- name : Linting Checks
19- runs-on : ubuntu-22.04
20- steps :
21- - name : Checkout repository
22- uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
23- - name : Install python
24- uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
25- with :
26- python-version : 3.x
27- - name : Check files
28- uses : pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
2917
3018 test :
3119 name : Test Build Docs
3220 if : github.repository == 'gethomepage/homepage' && github.event_name == 'pull_request'
3321 runs-on : ubuntu-latest
34- needs :
35- - pre-commit
3622 steps :
3723 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3824 - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
5036 environment :
5137 name : github-pages
5238 url : ${{ steps.deployment.outputs.page_url }}
53- needs :
54- - pre-commit
5539 steps :
5640 - uses : actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
5741 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
Original file line number Diff line number Diff line change 1+ name : Lint
2+
3+ on :
4+ pull_request :
5+ push :
6+ workflow_dispatch :
7+ merge_group :
8+
9+ jobs :
10+ lint :
11+ name : Linting Checks
12+ runs-on : ubuntu-22.04
13+ steps :
14+ - name : Checkout repository
15+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
16+
17+ - name : Install python
18+ uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
19+ with :
20+ python-version : 3.x
21+
22+ - name : Check files
23+ uses : pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
24+
25+ - name : Install pnpm
26+ uses : pnpm/action-setup@a8198c4bff370c8506180b035930dea56dbd5288 # v5
27+ with :
28+ version : 10
29+ run_install : false
30+
31+ - name : Setup Node.js
32+ uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
33+ with :
34+ node-version : 24
35+ cache : ' pnpm'
36+
37+ - name : Install dependencies
38+ run : pnpm install
39+
40+ - name : Lint frontend
41+ run : pnpm run lint
You can’t perform that action at this time.
0 commit comments