#115 Update dependencies #97
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Golangci lint | |
on: | |
push: | |
branches-ignore: [main] | |
pull_request: | |
branches: [main] | |
permissions: | |
# Required: allow read access to the content for analysis. | |
contents: read | |
# Optional: allow read access to pull request. Use with `only-new-issues` option. | |
pull-requests: read | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Senzing API | |
uses: senzing-factory/github-action-install-senzing-api@v4 | |
with: | |
senzingapi-version: staging-v4 | |
- name: Copy Senzing headers | |
run: | | |
mkdir --parents ./szconfig/gohelpers | |
cp /opt/senzing/er/sdk/c/*.h ./szconfig/ | |
cp /opt/senzing/er/sdk/c/gohelpers/*.h ./szconfig/gohelpers | |
mkdir --parents ./szconfigmanager/gohelpers | |
cp /opt/senzing/er/sdk/c/*.h ./szconfigmanager/ | |
cp /opt/senzing/er/sdk/c/gohelpers/*.h ./szconfigmanager/gohelpers | |
mkdir --parents ./szdiagnostic/gohelpers | |
cp /opt/senzing/er/sdk/c/*.h ./szdiagnostic/ | |
cp /opt/senzing/er/sdk/c/gohelpers/*.h ./szdiagnostic/gohelpers | |
mkdir --parents ./szengine/gohelpers | |
cp /opt/senzing/er/sdk/c/*.h ./szengine/ | |
cp /opt/senzing/er/sdk/c/gohelpers/*.h ./szengine/gohelpers | |
mkdir --parents ./szproduct/gohelpers | |
cp /opt/senzing/er/sdk/c/*.h ./szproduct/ | |
cp /opt/senzing/er/sdk/c/gohelpers/*.h ./szproduct/gohelpers | |
- name: Setup go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
- name: Perform linting | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
args: --config=${{ github.workspace }}/.github/linters/.golangci.yaml | |
only-new-issues: false | |
version: latest |