name: CI

on:
  push:
    tags-ignore:
    - 'v*'
    branches:
    - "master"
  pull_request:
  workflow_call:

concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true

jobs:
  ci:
    uses: smallstep/workflows/.github/workflows/goCI.yml@main
    with:
      only-latest-golang: false
      os-dependencies: 'libpcsclite-dev'
      run-build: false
      run-codeql: true
      codeql-build-cmd: 'go build ./...'
      test-command: 'V=1 make test'
    secrets: inherit
