This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
Merge pull request #218 from 9oelM/main #396
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 | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- v18.1.0 | |
- v16.13.1 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: Install packages | |
run: npm ci | |
- name: Run unit tests + e2e tests + coverage | |
run: npm run test:coverage | |
env: | |
WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }} | |
INFURA_PROJECT_ID: ${{ secrets.INFURA_PROJECT_ID }} | |
INFURA_PROJECT_SECRET: ${{ secrets.INFURA_PROJECT_SECRET }} | |
EVM_RPC_URL: ${{ secrets.EVM_RPC_URL }} | |
WALLET_PUBLIC_ADDRESS: ${{ secrets.WALLET_PUBLIC_ADDRESS }} | |
INFURA_IPFS_PROJECT_ID: ${{ secrets.INFURA_IPFS_PROJECT_ID }} | |
INFURA_IPFS_PROJECT_SECRET: ${{ secrets.INFURA_IPFS_PROJECT_SECRET }} | |
INFURA_IPFS_ENDPOINT: ${{ secrets.INFURA_IPFS_ENDPOINT }} | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@25b0be1ad1c39388799624b0d0914282bc36ac8e | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |