Create CI.yaml in Github Actions #3
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: 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" |