Skip to content

update coingecko api key #4217

update coingecko api key

update coingecko api key #4217

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.15.0"
cache: "npm"
# fix for forcing git to use https when pulling deps
- run: 'git config --global --replace-all url."https://github.com/".insteadOf ssh://git@github.com/'
- run: npm ci
- run: npm run build --if-present
- name: Run BundleMon
run: npm run bundlemon
env:
BUNDLEMON_PROJECT_ID: 62325f451d1b50bea48f41fb
CI_COMMIT_SHA: ${{github.event.pull_request.head.sha || github.sha}} # important!
# Keeping in case we ever want to save build artifacts
# - name: Zip artifact
# run: zip build-artifact -r ./build
# - uses: actions/upload-artifact@v3
# with:
# name: build-artifact
# path: ./build-artifact.zip
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.15.0"
cache: "npm"
# fix for forcing git to use https when pulling deps
- run: 'git config --global --replace-all url."https://github.com/".insteadOf ssh://git@github.com/'
- run: npm ci
- run: npm run lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.15.0"
cache: "npm"
# fix for forcing git to use https when pulling deps
- run: 'git config --global --replace-all url."https://github.com/".insteadOf ssh://git@github.com/'
- run: npm ci
- run: npm test
env:
CI: true
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.15.0"
# fix for forcing git to use https when pulling deps
- run: 'git config --global --replace-all url."https://github.com/".insteadOf ssh://git@github.com/'
- run: npm ci
- run: npm test -- --coverage
env:
CI: true
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
coverage-cypress:
env:
REACT_APP_NOTIFY_DAPP_ID: ${{ secrets.REACT_APP_NOTIFY_DAPP_ID }}
runs-on: ubuntu-latest
services:
saddle-contract:
image: saddlefinance/contracts:latest
ports:
- 8545:8545
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.15.0"
cache: "npm"
- name: Cache Cypress
id: cache-cypress
uses: actions/cache@v3
with:
path: ~/.cache/Cypress
key: cypress-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
# - uses: actions/download-artifact@v2
# with:
# name: build-artifact
# - name: Unzip artifact
# run: unzip -qq build-artifact.zip -d .
# fix for forcing git to use https when pulling deps
- run: 'git config --global --replace-all url."https://github.com/".insteadOf ssh://git@github.com/'
- run: npm ci
- run: npm run cy:coverage
env:
CHOKIDAR_USEPOLLING: 1
- run: npx nyc report --reporter=text
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- uses: actions/upload-artifact@v3
if: failure()
with:
name: E2E Failures
path: cypress/screenshots/