feat: rewards distribution helper (#59) #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rewards distribution | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main, develop] | |
pull_request: | |
branches: [main, develop] | |
jobs: | |
check: | |
strategy: | |
fail-fast: true | |
name: Typescript scripts | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Node.js | |
id: setup-node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: yarn | |
- name: Install Dependencies | |
id: install | |
run: | | |
yarn | |
cd scripts/rewards-distribution | |
yarn | |
- name: Run Typescript tests | |
id: test | |
run: | | |
cd scripts/rewards-distribution | |
yarn test |