Merge pull request #131 from mvisonneau/dependabot/docker/alpine-3.19 #176
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: test | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-22.04 | |
- macos-11.0 | |
- windows-2022 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.20' | |
- name: Lint | |
if: ${{ matrix.os == 'ubuntu-22.04' }} | |
run: make lint | |
- name: Test | |
run: make coverage | |
- name: Publish coverage to coveralls.io | |
uses: shogo82148/actions-goveralls@v1 | |
if: ${{ matrix.os == 'ubuntu-22.04' }} | |
with: | |
path-to-profile: coverage.out | |
- name: Build | |
run: make build |