Skip to content

fix(deps): update module github.com/stretchr/testify to v1.10.0 #122

fix(deps): update module github.com/stretchr/testify to v1.10.0

fix(deps): update module github.com/stretchr/testify to v1.10.0 #122

Workflow file for this run

# SPDX-FileCopyrightText: 2023 Steffen Vogel <[email protected]>
# SPDX-License-Identifier: Apache-2.0
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/github-workflow.json
---
name: Build
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macOS-latest, windows-latest ]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install -y
libpcsclite-dev
pcscd
pcsc-tools
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
check-latest: true
- name: Lint
# TODO: golangci-lint is currently broken on Windows?
if: matrix.os != 'windows-latest'
uses: golangci/golangci-lint-action@v6
with:
version: v1.59.1
continue-on-error: true
- name: Set up gotestfmt
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
- name: Run Go tests
if: matrix.os == 'ubuntu-latest'
shell: bash
run: |
set -euo pipefail
go test \
-v \
-json \
-coverpkg ./... \
-tags ci \
-coverprofile cover.profile \
./... 2>&1 | \
tee gotest.log | \
gotestfmt
- name: Upload test log
if: always() && matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: test-log-${{ matrix.os }}
path: gotest.log
if-no-files-found: error
- name: Build
if: matrix.os != 'ubuntu-latest'
run: go build .
- name: Report test coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: cover.profile