refactor: reuse vole for checking bitswap #9
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: Test | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
test: | |
runs-on: 'ubuntu-latest' | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.21.x | |
- uses: actions/checkout@v4 | |
with: | |
path: 'ipfs-check' | |
- name: Build and Start | |
run: | | |
cd ipfs-check | |
go build -o ipfs-check | |
./ipfs-check & | |
sleep 300 | |
- uses: ipfs/download-ipfs-distribution-action@v1 | |
- name: Configure Kubo Gateway | |
run: | | |
ipfs init; | |
- uses: ipfs/start-ipfs-daemon-action@v1 | |
- name: Tests | |
working-directory: ipfs-check | |
run: | | |
go test ./... |