Skip to content

Commit

Permalink
Merge pull request #26 from voltfinance/analyze
Browse files Browse the repository at this point in the history
add analyze script
  • Loading branch information
mul53 authored Aug 5, 2024
2 parents 0695b76 + 21e9b9f commit 1dfee50
Show file tree
Hide file tree
Showing 15 changed files with 10,590 additions and 2,435 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/analyze.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Analyze
on: [pull_request]
jobs:
analyze:
runs-on: ubuntu-latest
name: Analyze Token
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 14
- run: npm install
- id: analyze
name: Analyze PR
run: |
npm run analyze
[ -f summary.txt ] && echo "{SKIP}={false}" >> "$GITHUB_ENV" || echo "{SKIP}={true}" >> "$GITHUB_ENV"
- uses: mshick/add-pr-comment@v2
if: ${{env.SKIP == true}}
name: Comment on PR
with:
message-path: ./summary.txt
7 changes: 4 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Tests
on: [push, pull_request]
on: [push]
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -9,6 +9,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 12
node-version: 14
- run: npm install
- run: npm test
- run: npm test

2 changes: 1 addition & 1 deletion build/voltage-swap-default.tokenlist.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Voltage Swap List",
"timestamp": "2024-07-25T09:40:14.891Z",
"timestamp": "2024-07-29T10:33:07.796Z",
"version": {
"major": 3,
"minor": 26,
Expand Down
2 changes: 2 additions & 0 deletions contributors
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mul53
darkpaladi
Loading

0 comments on commit 1dfee50

Please sign in to comment.