forked from tetherto/pear-apps-utils-generate-unique-id
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.57 KB
/
Copy pathlint.yml
File metadata and controls
53 lines (43 loc) · 1.57 KB
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
name: Lint check
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Checkout tether-dev-docs
uses: actions/checkout@v4
with:
repository: noxtton/tether-dev-docs
token: ${{ secrets.PAT_TOKEN }}
path: tether-dev-docs
- name: Configure Git credentials
run: |
git config --global --add url."https://${{ secrets.PAT_TOKEN }}:x-oauth-basic@github.com/".insteadOf "git+ssh://git@github.com/"
git config --global --add url."https://${{ secrets.PAT_TOKEN }}:x-oauth-basic@github.com/".insteadOf "git@github.com:"
git config --global --add url."https://${{ secrets.PAT_TOKEN }}:x-oauth-basic@github.com/".insteadOf "https://github.com/"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
registry-url: "https://npm.pkg.github.com"
scope: "@tetherto"
- name: Install dependencies
run: npm ci --legacy-peer-deps
env:
NODE_AUTH_TOKEN: ${{ secrets.PAT_TOKEN }}
- name: Install ESLint
run: npm install eslint@9.18.0 --legacy-peer-deps
- name: Setup tether-dev-docs
run: |
cp -r tether-dev-docs node_modules/tether-dev-docs
cd node_modules/tether-dev-docs && npm install --legacy-peer-deps
- name: Run ESLint
run: npm run lint