Skip to content

api: change util command ok to sckutils #12

api: change util command ok to sckutils

api: change util command ok to sckutils #12

Workflow file for this run

name: test
on:
push:
branches:
- main
jobs:
test:
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 -race -coverpkg=./... -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
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -parallel -coverprofile=coverage.out -service=github
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.21.x
- uses: actions/checkout@v3
- name: Install goveralls
env:
GO111MODULE: off
run: go get github.com/mattn/goveralls
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ github.token }}
GIT_BRANCH: ${{ github.head_ref }}
run: goveralls -parallel-finish -service=github