diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000000..5577b36a23 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -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 diff --git a/.github/workflows/update-swap-list.yml b/.github/workflows/update-swap-list.yml index b4c1d3c432..ed154fd065 100644 --- a/.github/workflows/update-swap-list.yml +++ b/.github/workflows/update-swap-list.yml @@ -2,6 +2,8 @@ name: Update swap lists every 60 mins on: push: + branches: + - main schedule: - cron: "0 * * * *"