0
mirror of https://github.com/valentineus/go-metatrader4.git synced 2025-06-08 02:03:34 +03:00

Integrate Codecov service

This commit is contained in:
Valentin Popov 2025-06-05 02:20:11 +04:00
parent 949d77e2cf
commit 711a5a0348
Signed by: Valentin Popov
GPG Key ID: AE3CE523DAAA8401

View File

@ -2,9 +2,9 @@ name: CI
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
permissions:
contents: read
@ -19,7 +19,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24.3'
go-version: "1.24.3"
- name: Cache Go modules
uses: actions/cache@v4
with:
@ -37,6 +37,10 @@ jobs:
run: go vet ./...
- name: Run tests
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage reports
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
lint:
name: Lint
@ -47,7 +51,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24.3'
go-version: "1.24.3"
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v8
with: