rely on init_if_needed to avoid ata race condition on concurrent sends #300
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: Frontend Tests | |
on: | |
pull_request: | |
paths: [frontend/**, token-dispenser/**] | |
push: | |
branches: [main] | |
paths: [frontend/**, token-dispenser/**] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: jetprotocol/builder:rust-1.68.0-node-18.15.0-solana-1.14.17-anchor-0.27.0-1 | |
env: | |
ENDPOINT: http://localhost:8899 | |
defaults: | |
run: | |
working-directory: ./frontend | |
steps: | |
- uses: actions/checkout@v3 | |
- name: setup os dependencies | |
run: apt-get update && apt-get install -y jq | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: "npm" | |
cache-dependency-path: frontend/package-lock.json | |
- name: Install deps | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Test | |
run: npm run test:ci |