Merge pull request #40 from nodeset-org/daemon-auth #111
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: Hyperdrive-Stakewise Unit Tests | |
on: | |
push: | |
tags: | |
- v* | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout OSHA | |
uses: actions/checkout@v4 | |
with: | |
repository: nodeset-org/osha | |
path: ./osha | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
working-directory: ./osha/hardhat | |
run: npm ci | |
- name: Run Hardhat | |
working-directory: ./osha/hardhat | |
run: npx hardhat node --port 8545 & | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.7 | |
- name: Run tests | |
env: | |
HARDHAT_URL: "http://localhost:8545" | |
run: go test -v -p 1 ./... |