Skip to content

Merge pull request #6 from ipfs-shipyard/v0.21.0-rc3 #61

Merge pull request #6 from ipfs-shipyard/v0.21.0-rc3

Merge pull request #6 from ipfs-shipyard/v0.21.0-rc3 #61

Workflow file for this run

name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master, dependency-upgrades ]
env:
GO_VERSION: "1.19.10"
PLUGIN_GO_VERSION: "1.19.10" # should match Kubo i guess
jobs:
tests:
name: "Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Tests
run: go test -v -timeout 15m -coverprofile=coverage.txt -covermode=atomic .
- name: Coverage
uses: codecov/codecov-action@v3
with:
directory: nopfs
check:
name: "Static, syntax and spelling checks"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Install misspell
run: go install github.com/client9/misspell/cmd/misspell@latest
- name: Check
run: make check
plugin:
name: "Plugin"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.PLUGIN_GO_VERSION }}
- name: Plugin
run: make plugin