generated from snivilised/arcadia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: replace extendio.i18n with li18ngo (#226)
- Loading branch information
1 parent
6ae7817
commit 5399703
Showing
25 changed files
with
123 additions
and
80 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: Pixa Continuous Integration | ||
|
||
on: | ||
push: | ||
|
||
|
@@ -7,43 +8,68 @@ jobs: | |
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v3 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: 1.22 | ||
go-version: 1.23 | ||
- uses: actions/checkout@v3 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v4 | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
version: v1.56.2 | ||
version: v1.60.3 | ||
args: --verbose | ||
|
||
test: | ||
strategy: | ||
matrix: | ||
go-version: [1.22] | ||
go-version: [1.23] | ||
platform: [ubuntu-latest, macos-latest] | ||
|
||
runs-on: ${{ matrix.platform }} | ||
|
||
env: | ||
COVER_DIR: ${{ github.workspace }}/coverage | ||
COVER_FILE: coverage.out | ||
COVER_OUT_PATH: ${{ github.workspace }}/coverage/coverage.out | ||
COVER_HTML_PATH: ${{ github.workspace }}/coverage/coverage.html | ||
GINKGO_REPORT: ginkgo.report | ||
|
||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
|
||
- name: Install goveralls | ||
run: go install github.com/mattn/goveralls@latest | ||
|
||
- name: Install ginkgo | ||
run: go install github.com/onsi/ginkgo/v2/[email protected] | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- run: go test -v -coverprofile=coverage.out ./... | ||
- name: Ensure coverage directory exists | ||
run: | | ||
mkdir -p ${{ github.workspace }}/coverage | ||
- name: Run tests and generate coverage profile with Ginkgo | ||
run: | | ||
ginkgo run -r -json-report {{env.GINKGO_REPORT}} -coverpkg=./... -coverprofile=coverage.out | ||
- uses: shogo82148/actions-goveralls@v1 | ||
- name: Apply coverage exclusions | ||
run: | | ||
${{ github.workspace }}/scripts/apply-coverage-exclusions.sh | ||
- name: Check coverage directory contents | ||
run: | | ||
echo "Contents of ${{ github.workspace }}/coverage:" | ||
ls -la ${{ github.workspace }}/coverage | ||
- name: Generate HTML coverage report | ||
run: | | ||
go tool cover -html=coverage.out -o ${{ github.workspace }}/coverage/coverage.html | ||
- name: Upload coverage to Coveralls | ||
uses: shogo82148/actions-goveralls@v1 | ||
with: | ||
path-to-profile: coverage.out | ||
|
||
- name: Send coverage | ||
env: | ||
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: goveralls -coverprofile=coverage.out -service=github |
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
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 |
---|---|---|
|
@@ -18,6 +18,7 @@ | |
"cmocks", | ||
"cobrass", | ||
"configurator", | ||
"copyloopvar", | ||
"cubiest", | ||
"deadcode", | ||
"deepcopy", | ||
|
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
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
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
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
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
File renamed without changes.
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
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
Oops, something went wrong.