Skip to content

Drop Prm/Res from shard #7206

Drop Prm/Res from shard

Drop Prm/Res from shard #7206

Workflow file for this run

name: neofs-node tests
on:
push:
branches:
- master
- support/**
paths-ignore:
- '*.md'
pull_request:
branches:
- master
- support/**
paths-ignore:
- '*.md'
jobs:
cover:
name: Coverage
runs-on: ubuntu-latest
steps:
- name: Setup go
uses: actions/setup-go@v5
with:
cache: true
go-version: '1.23'
- name: Check out code
uses: actions/checkout@v4
- name: Run go test
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
- name: Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true # if something is wrong on uploading codecov results, then this job will fail
files: ./coverage.txt
slug: nspcc-dev/neofs-node
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
test:
runs-on: ubuntu-latest
name: Unit tests
strategy:
matrix:
os: [ubuntu-22.04, macos-14]
go: [ '1.22', '1.23' ]
exclude:
# Only the latest Go version MacOS.
- os: macos-14
go: '1.22'
# Exclude the latest Go version for Ubuntu as Coverage uses it.
- os: ubuntu-22.04
go: '1.23'
steps:
- name: Setup go
uses: actions/setup-go@v5
with:
cache: true
go-version: ${{ matrix.go }}
- name: Check out code
uses: actions/checkout@v4
- name: Run go test
run: go test -race ./...
lint:
name: Lint
uses: nspcc-dev/.github/.github/workflows/go-linter.yml@master