1
0
mirror of synced 2024-12-01 09:36:10 +03:00
messenger/.github/workflows/ci.yml

47 lines
1.1 KiB
YAML
Raw Normal View History

name: ci
on:
push:
branches:
- '**'
tags-ignore:
- '*.*'
pull_request:
env:
GO111MODULE: on
jobs:
2021-02-15 12:08:41 +03:00
golangci:
name: lint
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Lint code with golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.36
only-new-issues: true
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
matrix:
2022-01-27 14:56:47 +03:00
go-version: ['1.13', '1.14', '1.15', '1.16', '1.17']
steps:
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: go mod tidy
- name: Tests
run: |
go test -v ./...
go build ./examples/...
- name: Coverage
run: bash <(curl -s https://codecov.io/bash)