Skip to content

add logs

add logs #18

Workflow file for this run

name: PR Checks
on:
pull_request:
branches: [ master , "*" ]
env:
GH_ACCESS_TOKEN: ${{ secrets.ARMOSEC_GITHUB_ACCESS_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ env.GH_ACCESS_TOKEN }}
- run: git config --global url.https://[email protected]/armosec/.insteadOf https://github.com/armosec/
- run: git config --global url.https://[email protected]/kubescape/.insteadOf https://github.com/kubescape/
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Get dependencies
run: go mod download
- name: Test
run: go test ./... -v --race -covermode=atomic -coverprofile=coverage.out
- name: Convert coverage count to lcov format
uses: jandelgado/gcov2lcov-action@v1
- name: Submit coverage tests to Coveralls
continue-on-error: true
uses: coverallsapp/github-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov