workflows: switch to org-wide golangci-lint job #135
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: Tests | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: | |
- master | |
types: [opened, synchronize] | |
paths-ignore: | |
- '**/*.md' | |
workflow_dispatch: | |
inputs: | |
ref: | |
description: 'Ref to test Bench, GoNode and SharpNode images [default: latest master; examples: 0a4ff9d3e4a9ab432fd5812eb18c98e03b5a7432]' | |
required: false | |
default: '' | |
jobs: | |
lint: | |
uses: nspcc-dev/.github/.github/workflows/go-linter.yml@master | |
with: | |
workdir: cmd | |
codeql: | |
name: CodeQL | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'go' ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.inputs.ref }} | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Autobuild | |
uses: github/codeql-action/autobuild@v3 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
tests: | |
name: Run tests | |
runs-on: ubuntu-24.04 | |
strategy: | |
matrix: | |
benchmarks: [ 'GoSingle10wrk', 'SharpSingle10wrk', 'MixedFourNodesGoRPC50rate' ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.inputs.ref }} | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'cmd/go.mod' | |
cache-dependency-path: cmd/go.sum | |
- name: Build Bench, GoNode and SharpNode docker images | |
run: make build | |
- name: Prepare configurations | |
run: make prepare | |
- name: Run benchmark for ${{ matrix.benchmarks }} | |
run: make start.${{ matrix.benchmarks }} |