-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
iasergunin
committed
Dec 9, 2023
1 parent
3e4301d
commit 4a89e3b
Showing
2 changed files
with
44 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,46 +10,46 @@ env: | |
GO_TARGET_VERSION: 1.21 | ||
OS_TARGET: ubuntu-latest | ||
jobs: | ||
tests-units: | ||
permissions: | ||
pull-requests: write | ||
strategy: | ||
matrix: | ||
go-version: | ||
# - '1.10' doesn't have go module | ||
# - 1.11 | ||
# - 1.12 doesn't have errors pkg | ||
- '1.13' | ||
- '1.14' | ||
- '1.15' | ||
- '1.16' | ||
- '1.17' | ||
- '1.18' | ||
- '1.19' | ||
- '1.20' | ||
os: | ||
- ubuntu-latest | ||
# - macos-latest | ||
# - windows-latest | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go-${{ matrix.go-version }} | ||
- name: Tests | ||
run: make test | ||
# tests-units: | ||
# permissions: | ||
# pull-requests: write | ||
# strategy: | ||
# matrix: | ||
# go-version: | ||
# # - '1.10' doesn't have go module | ||
# # - 1.11 | ||
# # - 1.12 doesn't have errors pkg | ||
# - '1.13' | ||
# - '1.14' | ||
# - '1.15' | ||
# - '1.16' | ||
# - '1.17' | ||
# - '1.18' | ||
# - '1.19' | ||
# - '1.20' | ||
# os: | ||
# - ubuntu-latest | ||
# # - macos-latest | ||
# # - windows-latest | ||
# runs-on: ${{ matrix.os }} | ||
# steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v3 | ||
# - name: Install Go | ||
# uses: actions/setup-go@v3 | ||
# with: | ||
# go-version: ${{ matrix.go-version }} | ||
# - uses: actions/cache@v3 | ||
# with: | ||
# path: | | ||
# ~/.cache/go-build | ||
# ~/go/pkg/mod | ||
# key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-go-${{ matrix.go-version }} | ||
# | ||
# - name: Tests | ||
# run: make test | ||
|
||
tests-integration: | ||
permissions: | ||
|
@@ -117,14 +117,12 @@ jobs: | |
set -x | ||
COVERAGE_TOTAL=`go tool covdata func -i=./coverage | grep total | grep -Eo '[0-9]+\.[0-9]+'` | ||
echo "COVERAGE_TOTAL=$COVERAGE_TOTAL" >> $GITHUB_ENV | ||
- uses: jandelgado/[email protected] | ||
with: | ||
outfile: ./coverage.lcov | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@master | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
path-to-lcov: ./coverage.lcov | ||
format: golang | ||
file: ./coverage.out | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
golangci: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters