Skip to content

Commit 1c4659b

Browse files
authored
chore: refactor CI pipelines (#227)
1 parent 7507dc4 commit 1c4659b

File tree

4 files changed

+66
-48
lines changed

4 files changed

+66
-48
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
**Action:** add / update / remove token (keep those that apply)
1+
**Action:** Add / Update / Remove token (choose one)
2+
23
**Context / Rationale:**
4+
<brief explanation here>
35

46
---
57

68
### PR Checklist
79

8-
- [ ] I have verified and published the contract source
9-
- [ ] I have kept the token list in alphabetical order based on token symbol
10-
- [ ] I have updated the `updatedAt` field (and `createdAt` if applicable)
11-
- [ ] I have updated the list version number according to the README instructions
10+
- [ ] Verified and published the contract source
11+
- [ ] Kept the token list in alphabetical order by token symbol
12+
- [ ] Updated the `updatedAt` field (and `createdAt` if applicable)
13+
- [ ] Updated the list version number according to the README instructions
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Test and Validate JSON
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
branches:
12+
- main
13+
14+
jobs:
15+
unit_tests:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v5
20+
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 22
25+
26+
- name: Install NPM dependencies
27+
run: npm ci
28+
29+
- name: Run NPM tests
30+
run: npm run test
31+
32+
validate_json:
33+
runs-on: ubuntu-latest
34+
35+
steps:
36+
- name: Checkout code
37+
uses: actions/checkout@v5
38+
39+
- name: Set up Python
40+
uses: actions/setup-python@v5
41+
with:
42+
python-version: '3.x'
43+
44+
- name: Install dependencies
45+
run: pip install jsonschema
46+
47+
- name: Validate JSON
48+
run: |
49+
jsonschema -i ./json/linea-sepolia-token-shortlist.json ./json/schema/l2-token-list-schema.json

.github/workflows/verify-and-test.yml renamed to .github/workflows/verify-json.yml

Lines changed: 8 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,14 @@
1-
name: Verify and Test
1+
name: Verify JSON
2+
3+
permissions:
4+
contents: read
25

36
on:
4-
pull_request:
7+
push:
58
branches:
69
- main
710

811
jobs:
9-
unit_tests:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Checkout code
13-
uses: actions/checkout@v4
14-
15-
- name: Set up Node.js
16-
uses: actions/setup-node@v3
17-
with:
18-
node-version: 20
19-
20-
- name: Install NPM dependencies
21-
run: npm ci
22-
23-
- name: Run NPM tests
24-
run: npm run test
25-
26-
validate_json:
27-
runs-on: ubuntu-latest
28-
29-
steps:
30-
- name: Checkout code
31-
uses: actions/checkout@v4
32-
33-
- name: Set up Python
34-
uses: actions/setup-python@v5
35-
with:
36-
python-version: '3.x'
37-
38-
- name: Install dependencies
39-
run: pip install jsonschema
40-
41-
- name: Validate JSON
42-
run: |
43-
jsonschema -i ./json/linea-sepolia-token-shortlist.json ./json/schema/l2-token-list-schema.json
44-
4512
verify_mainnet_shortlist:
4613
runs-on: ubuntu-latest
4714

@@ -54,14 +21,14 @@ jobs:
5421

5522
steps:
5623
- name: Checkout code
57-
uses: actions/checkout@v4
24+
uses: actions/checkout@v5
5825
with:
5926
fetch-depth: 0
6027

6128
- name: Setup Node.js
62-
uses: actions/setup-node@v3
29+
uses: actions/setup-node@v4
6330
with:
64-
node-version: 20
31+
node-version: 22
6532

6633
- name: Install dependencies
6734
run: npm install

json/linea-mainnet-token-shortlist.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"versions": [
88
{
99
"major": 1,
10-
"minor": 56,
10+
"minor": 57,
1111
"patch": 1
1212
}
1313
],
@@ -95,7 +95,7 @@
9595
{
9696
"chainId": 59144,
9797
"chainURI": "https://lineascan.build/block/0",
98-
"tokenId": "https://lineascan.build/address/0x880a3ae90f989030708a529abd841589053c1dc2",
98+
"tokenId": "https://lineascan.build/address/0x880A3Ae90f989030708A529ABd841589053c1dC2",
9999
"tokenType": ["native"],
100100
"address": "0x880A3Ae90f989030708A529ABd841589053c1dC2",
101101
"name": "Beaver Coin",

0 commit comments

Comments
 (0)