Skip to content

Create CI.yaml in Github Actions #3

Create CI.yaml in Github Actions

Create CI.yaml in Github Actions #3

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['>=1.22.0']
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Install golint
run: |
go get -u golang.org/x/lint/golint
- name: Lint check
run: make lint
- name: Build ${{ matrix.go-version }}
run: |
make
make test
- name: Race conditions test
run: make race
continue-on-error: true
- name: Test coverage
run: |
make coverage
make coverage_report
make coverage_html
continue-on-error: true
- name: Deploy Docker
run: echo "TODO"