Merge pull request #195 from nodeset-org/staging #240
Workflow file for this run
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 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 OSHA 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" | |
CI: true | |
run: go test -p 1 ./... |