Skip to content

Commit

Permalink
Merge branch 'main' into feature/payments-implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
edmarSoaress committed Feb 7, 2024
2 parents 7c220ea + 0719d5e commit a3a2b47
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "**" ]

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
cache: false

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2

test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
cache: false

- name: Test
uses: robherley/[email protected]
with:
testArguments: './pkg/... -coverprofile=./cover.out'

- name: Check coverage
uses: vladopajic/go-test-coverage@v2
if: always()
with:
config: ./.testcoverage.yml
10 changes: 10 additions & 0 deletions .testcoverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
profile: cover.out
threshold:
file: 80
package: 80
total: 80

exclude:
paths:
- ^pkg/internal
- ^pkg/config

0 comments on commit a3a2b47

Please sign in to comment.