Skip to content

refactor: try to write better code #246

refactor: try to write better code

refactor: try to write better code #246

Workflow file for this run

name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go:
- 1.21.x
- 1.20.x
- 1.19.x
name: Test with Go v${{ matrix.go }}
steps:
- uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Intall goveralls
run: |
go install github.com/mattn/goveralls@latest
- name: Generate ent
run: |
make generate
- name: Test
run: |
make tests
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
goveralls -coverprofile=coverage.out -service=github