Skip to content

Update Workflow Dependencies and Logging Configuration Improvements #1631

Update Workflow Dependencies and Logging Configuration Improvements

Update Workflow Dependencies and Logging Configuration Improvements #1631

Workflow file for this run

---
name: Tests
on:
pull_request:
push:
branches: [main]
env:
# Skip keeper tests
SKIP_KEEPER_TESTS: true
jobs:
tests:
name: Run tests and determine code coverage %
runs-on: ubuntu-latest
steps:
- name: Clone git repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
with:
go-version: '1.23'
- name: Install goreleaser (required for tests)
run: go install github.com/goreleaser/goreleaser@latest
- name: Setup git config
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
- name: Set up Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5
with:
python-version: "3.x"
- name: Install python dependencies (required for tests)
run: python3 -m pip install ansible keepercommander pre-commit
- name: Generate the coverage output
run: |
bash .hooks/run-go-tests.sh coverage
- name: Send the coverage output
uses: shogo82148/actions-goveralls@7b1bd2871942af030d707d6574e5f684f9891fb2 # v1
with:
path-to-profile: coverage-all.out