Skip to content

Commit

Permalink
Merge pull request #4 from thegalactiks/setup-ci
Browse files Browse the repository at this point in the history
Setup ci
  • Loading branch information
emmanuelgautier authored Jan 16, 2024
2 parents c37f164 + d9125db commit c225e31
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @thegalactiks @emmanuelgautier
68 changes: 68 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: CI

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

env:
GO_VERSION: '1.21.1'

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@v4
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@v3

# publish:
# needs: build
# runs-on: ubuntu-latest
# if: startsWith(github.ref, 'refs/tags/')

# permissions:
# contents: write
# packages: write
# pull-requests: write

# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0

# - run: git fetch --force --tags

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

# - name: Login to GitHub Container Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c225e31

Please sign in to comment.