Skip to content

Catch up to changes from XDPoSChain #116

Catch up to changes from XDPoSChain

Catch up to changes from XDPoSChain #116

Workflow file for this run

name: PR tests
on:
pull_request:
branches:
- master
jobs:
test_on_pr:
name: Run tests on PR
runs-on: ubuntu-latest
env:
GOPATH: ${{ github.workspace }}
GOBIN: ${{ github.workspace }}/bin
defaults:
run:
working-directory: ${{ env.GOPATH }}/src/XDC-Subnet
steps:
- name: Check out code
uses: actions/checkout@v3
with:
path: ${{ env.GOPATH }}/src/XDC-Subnet
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "20.x"
- name: Check smart contract
run: |
cd contracts/validator/src
yarn
npx hardhat test
- name: Set up Go 1.21.x
uses: actions/setup-go@v4
with:
go-version: "1.21.x" # The Go version to download (if necessary) and use.
- name: Run tests
run: |
make test
env:
GO111MODULE: auto