Skip to content

Bump github.com/spacemeshos/go-spacemesh from 1.2.2 to 1.7.8 #27

Bump github.com/spacemeshos/go-spacemesh from 1.2.2 to 1.7.8

Bump github.com/spacemeshos/go-spacemesh from 1.2.2 to 1.7.8 #27

Workflow file for this run

name: CI
# Trigger the workflow on all pull requests, and on push to specific branches
on:
# run for all pull requests and pushes to certain branches
pull_request:
jobs:
## stage 0: check which files were changed
filter-changes:
runs-on: ubuntu-latest
outputs:
nondocchanges: ${{ steps.filter.outputs.nondoc }}
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v3
id: filter
with:
# this pattern matches using picomatch syntax (used by this third party Action), which is slightly
# different than GitHub syntax: it matches any file in any path ending in '.md'. this checks if
# any non-markdown files were changed.
filters: |
nondoc:
- '!**/*.md'
golangci:
name: lint
runs-on: ubuntu-latest
needs: filter-changes
if: ${{ needs.filter-changes.outputs.nondocchanges == 'true' }}
# should not take more than 4-6 mins
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: v1.61.0
unittests:
runs-on: ubuntu-latest
needs: filter-changes
if: ${{ needs.filter-changes.outputs.nondocchanges == 'true' }}
# should take around 15-18 mins
timeout-minutes: 20
steps:
- name: checkout
uses: actions/checkout@v2
- name: set up go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: unit tests
run: make test-race