fix: add whitelist label address in homepage #371
Workflow file for this run
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: Unit Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- dev | |
- main | |
jobs: | |
unit-tests: | |
runs-on: [self-hosted, linux] | |
strategy: | |
fail-fast: true | |
matrix: | |
node: [18] | |
name: Unit tests (Jest) | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18.x | |
registry-url: 'https://npm.pkg.github.com' | |
scope: '@astraprotocol' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: | | |
npm install -g yarn | |
echo yarn-cache-dir="$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v2 | |
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.yarn-cache-dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Setup npm token | |
run: npm config set '//npm.pkg.github.com/:_authToken' "${{secrets.GITHUB_TOKEN}}" | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Run tests | |
run: yarn test | |
env: | |
NEXT_PUBLIC_ENV: mainnet | |
NEXT_PUBLIC_WASA_ADDRESS: '0x6637D8275DC58983Cb3A2fa64b705EC11f6EC670' |