Skip to content

devops: handle black-box testing #6

devops: handle black-box testing

devops: handle black-box testing #6

Workflow file for this run

name: test
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install system-level dependencies
run: |
# Install libpcsclite using apt package manager
sudo apt-get update
sudo apt-get install -y libpcsclite-dev
# Install other system-level dependencies if needed
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '>=1.21.3' # Use the Go version you require
- name: Run tests and generate coverage report
run: |
go test -v -coverprofile=coverage.out ./...
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.out # Path to the coverage report generated earlier