Skip to content

chore: improve actions #169

chore: improve actions

chore: improve actions #169

Workflow file for this run

name: Build
on:
push:
branches:
- 'master'
- '!gh-pages'
pull_request:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2
args: -c .golangci.yml --timeout=5m -v
- name: Install dependencies
run: go get .
- name: Build
run: go build -v ./...
- name: Test
run: go test -parallel 1 -v ./...
dcp_test:
runs-on: ubuntu-latest
needs:
- build
strategy:
matrix:
version: ["5.0.1", "5.1.0", "5.5.0", "6.0.0", "6.5.0", "6.6.0", "7.0.0", "7.1.0", "7.2.0", "7.2.3"]
steps:
- uses: actions/dcp_test@v1
with:
version: ${{ matrix.version }}