Skip to content

Merge pull request #25 from opensource-nepal/codecov-update #37

Merge pull request #25 from opensource-nepal/codecov-update

Merge pull request #25 from opensource-nepal/codecov-update #37

Workflow file for this run

# 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 Nepali CI
on:
push:
branches: ['main']
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Conventional Commitlint
uses: opensource-nepal/commitlint@v1
with:
verbose: true
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.19
- name: Build
run: go build -v ./...
- name: Test
run: go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...
- name: Send coverage to CodeCov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
verbose: true