Skip to content

test: migrate integration tests to hardhat #312

test: migrate integration tests to hardhat

test: migrate integration tests to hardhat #312

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
push:
branches: [master, Stable-Test, QA-Test]
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Use Node.js 20.15.1
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: "20.15.1"
- name: NPM Login
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm config set //npm.pkg.github.com/:_authToken $GITHUB_TOKEN
- name: Install dependencies
run: npm ci
- name: Lint contracts
run: npm run lint:sol
- name: Compile contracts
run: npm run compile
- name: Lint test and scripts
run: npm run lint:ts
- name: Unit test smart contracts
run: npm test
# - name: Coverage report
# run: npm run coverage
# - name: Coveralls
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Reproduce build
# run: npm publish --dry-run