feat: update Allo SDK code for v2.1 and configure unit tests #194
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: Test and Lint | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: ci-testing | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '>= 18' | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Run tests | |
env: | |
TEST_ADDRESS: ${{ secrets.TEST_ADDRESS }} | |
TEST_PRIVATE_KEY: ${{ secrets.TEST_PRIVATE_KEY }} | |
run: npm test | |
- name: Run linter | |
run: yarn lint |