Skip to content

Redesign state

Redesign state #10

Workflow file for this run

name: Go Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
strategy:
matrix:
vm-os: [ubuntu-latest]
go-version: [1.18, 1.19]
runs-on: ${{ matrix.vm-os }}
env:
GO111MODULE: on
steps:
- name: Install go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
uses: actions/checkout@v3
- name: Get dependencies
run: go mod download
- name: Test and create coverage file
run: go test -coverprofile='coverage.txt' -covermode=atomic
- name: Upload coverage file to codecov
uses: codecov/codecov-action@v3
with:
token: ${{secrets.CODECOV_TOKEN}}