Skip to content

Commit

Permalink
ci: bootstrap build ci
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelgautier committed Apr 17, 2024
1 parent 6abb916 commit 19736ff
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
tags:
- "v*.*.*"
branches:
- main
pull_request:
branches:
- main

env:
GO_VERSION: "1.22"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Go environment
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}

- name: Build
run: go build -v ./...

- name: Test
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...

# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v4
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 19736ff

Please sign in to comment.