Skip to content

Test new action

Test new action #85

Workflow file for this run

on:
push:
branches:
- master
pull_request:
branches:
- master
env:
GO_VERSION: "1.23.0"
GO_LANG_CI_LINT_VERSION: "v1.60.1"
name: run tests
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@v4
- name: Run linters
uses: golangci/golangci-lint-action@v6
with:
version: ${{ env.GO_LANG_CI_LINT_VERSION }}
test:
strategy:
matrix:
go-version: [ "1.23.0", "1.22.5" ]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Run tests
run: go test -v -covermode=count
coverage:
runs-on: ubuntu-latest
strategy:
matrix:
actver: [ "v1", "v1.1.0", "v1.0.9", "v1.0.7", "v1.0.6"]
toolver: [ "latest", "v1.1.1", "v1.1.0", "v1.0.9", "v1.0.7", "v1.0.6"]
steps:
- name: Install Go
if: success()
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@v4
- name: Calc coverage
run: |
go test -v -covermode=count -coverprofile=coverage.out
- name: gcov2lcov
uses: jandelgado/gcov2lcov-action@{{ .actver }}
with:
version: ${{ .toolver }}

Check failure on line 66 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / run tests

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 66, Col: 20): Unexpected symbol: '.toolver'. Located at position 1 within expression: .toolver