Skip to content

build(deps): bump github/codeql-action from 3.26.2 to 3.26.5 #278

build(deps): bump github/codeql-action from 3.26.2 to 3.26.5

build(deps): bump github/codeql-action from 3.26.2 to 3.26.5 #278

Workflow file for this run

name: CI
on: [push, pull_request]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod
- name: Cache go modules
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Run unit tests
run: go test ./v2 -v -coverprofile=cov.out
- name: Run integration tests
run: go test ./internal/integration/v2 -tags integration -v -coverpkg="github.com/pandatix/nvdapi/v2" -coverprofile=cov-tf.out
env:
API_KEY: ${{ secrets.API_KEY }}
if: github.event_name != 'pull_request'
- name: Merge coverprofiles
run: tail -n +2 cov-tf.out >> cov.out
if: github.event_name != 'pull_request'
- name: Upload coverage to Coveralls
uses: shogo82148/actions-goveralls@785c9d68212c91196d3994652647f8721918ba11 # v1.9.0
with:
path-to-profile: cov.out
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod
- name: go-lint
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0