Skip to content

Bump go.nhat.io/aferomock from 0.6.0 to 0.7.0 (#21) #52

Bump go.nhat.io/aferomock from 0.6.0 to 0.7.0 (#21)

Bump go.nhat.io/aferomock from 0.6.0 to 0.7.0 (#21) #52

Workflow file for this run

---
name: test
on:
push:
branches:
- master
pull_request:
env:
GO111MODULE: "on"
jobs:
setup:
runs-on: ubuntu-latest
outputs:
go-latest-version: ${{ steps.find-go-version.outputs.go-latest-version }}
go-supported-versions: ${{ steps.find-go-version.outputs.go-supported-versions }}
steps:
- name: Checkout code
uses: nhatthm/gh-actions/checkout@master
- id: find-go-version
name: Find Go version
uses: nhatthm/gh-actions/find-go-version@master
test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
go-version: ${{ fromJson(needs.setup.outputs.go-supported-versions) }}
runs-on: ${{ matrix.os }}
needs: [setup]
env:
GO_LATEST_VERSION: ${{ needs.setup.outputs.go-latest-version }}
steps:
- name: Checkout code
uses: nhatthm/gh-actions/checkout@master
- name: Install Go
uses: nhatthm/gh-actions/setup-go@master
with:
go-version: ${{ matrix.go-version }}
- name: Test
run: |
make test
- name: Upload code coverage (unit)
if: matrix.go-version == env.GO_LATEST_VERSION
uses: nhatthm/gh-actions/codecov@master
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./unit.coverprofile
flags: unittests-${{ runner.os }}