Skip to content

Commit

Permalink
use github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
HDT3213 committed Jun 26, 2023
1 parent 4cae62d commit 9ed9506
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/coverall.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go

on:
push:
branches: [ "master", "github-actions" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:


jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: zhulik/[email protected]
with:
redis version: '5'
number of databases: 16

- uses: actions/setup-go@v3
with:
go-version: '1.19'
- run: go test -v -coverprofile=profile.cov ./...

- uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov

0 comments on commit 9ed9506

Please sign in to comment.