Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ThreeDP/build-a-redis
Browse files Browse the repository at this point in the history
  • Loading branch information
ThreeDP committed Feb 23, 2024
2 parents 1823885 + 92d9df5 commit 99b5ecf
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test and coverage

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

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

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'

- name: Build
run: make

- name: Test
run: make t

- name: Run coverage
run: go test -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4-beta
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 99b5ecf

Please sign in to comment.