Skip to content

Commit

Permalink
chore: github actions to test on non-main branches
Browse files Browse the repository at this point in the history
  • Loading branch information
NickKelly1 committed Aug 15, 2024
1 parent 4308539 commit 3d87733
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# (does the same thing as update-swap-lists but doesn't commit changes)

name: Run tests

on:
push:
branches-ignore:
- main
schedule:
- cron: "0 * * * *"

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20.16.0"
cache: "yarn"
cache-dependency-path: swap-tokens-generator/yarn.lock
- run: cd swap-tokens-generator && yarn install --frozen-lockfile && yarn run build
- run: cd swap-tokens-generator && yarn run update:lists
- run: cd swap-tokens-generator && mv dist/lists/*.json ../swaplists
2 changes: 2 additions & 0 deletions .github/workflows/update-swap-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Update swap lists every 60 mins

on:
push:
branches:
- main
schedule:
- cron: "0 * * * *"

Expand Down

0 comments on commit 3d87733

Please sign in to comment.