Skip to content

DOCSP-31837: Change template to make code-block non-copyable. (#57) #176

DOCSP-31837: Change template to make code-block non-copyable. (#57)

DOCSP-31837: Change template to make code-block non-copyable. (#57) #176

Workflow file for this run

---
name: CI
on:
push:
tags:
- v*
branches:
- main
pull_request:
jobs:
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: lint
uses: golangci/[email protected]
with:
version: v1.56.2
tests-on-unix:
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
runs-on: ubuntu-latest
strategy:
matrix:
golang:
- "stable"
- "oldstable"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.golang }}
- name: Cache Dependencies
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.golang }}-
- name: Run tests
run: make test