Merge pull request #72 from onflow/chasefleming/update-faucet #215
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
on: | |
push: | |
jobs: | |
static: | |
name: Static checks | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run tsc | |
test: | |
name: "Tests" | |
runs-on: ubuntu-latest | |
env: | |
PRESERVE_DATA_TEST_ATTRIBUTES: "true" | |
NEXT_PUBLIC_SIGNER_ADDRESS: "0xf8d6e0586b0a20c7" | |
SIGNER_PRIVATE_KEY: "91a22fbd87392b019fbe332c32695c14cf2ba5b6521476a8540228bdf1987068" | |
NEXT_PUBLIC_TEST_NET_URL: "http://localhost:3000" | |
NEXT_PUBLIC_CRESCENDO_URL: "http://localhost:3000" | |
NEXT_PUBLIC_TOKEN_AMOUNT_FLOW: "1000.0" | |
NEXT_PUBLIC_TOKEN_AMOUNT_FUSD: "10.0" | |
NEXT_PUBLIC_CONTRACT_FUNGIBLE_TOKEN: "0xee82856bf20e2aa6" | |
NEXT_PUBLIC_CONTRACT_FLOW_TOKEN: "0x0ae53cb6e3f42a79" | |
NEXT_PUBLIC_CONTRACT_FUSD: "0xf8d6e0586b0a20c7" | |
NEXT_PUBLIC_NETWORK: "testnet" | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- run: npm run build | |
- run: npm run start & | |
- run: npm run test |