name: linux
on:
pull_request:
push:
branches:
- main
jobs:
build:
name: build
runs-on: [ubuntu-latest]
strategy:
fail-fast: false
matrix:
go: ["stable", "oldstable"]
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version: ${{ matrix.go }}
id: go
- name: Go version
run: go version
- name: Get dependencies
run: go get -v -t -d ./...
- name: Build
run: go build -v .
- name: Test
run: script -q -e -c "go test -coverpkg=github.com/gdamore/tcell/v3/... -covermode=count -coverprofile=coverage.txt ./..."
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}