Skip to content

feat: more verbose errors #177

feat: more verbose errors

feat: more verbose errors #177

name: Tests
on:
pull_request:
types:
- opened
- reopened
- synchronize
jobs:
static-checks:
name: Static Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure python
uses: actions/[email protected]
with:
python-version: '3.9'
- name: Configure Go
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Get golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v${GOLANGCI_LINT_VERSION}
env:
GOLANGCI_LINT_VERSION: "1.44.2"
- name: Run pre-commit
uses: pre-commit/[email protected]
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
container:
image: ghcr.io/docplanner/helm-repo-updater/build-tools:develop
services:
git-server:
image: ghcr.io/docplanner/helm-repo-updater/git-repo-server:develop
steps:
- name: Setup environment
run: |
echo "GHA_USE_NODE_20=false" >> $GITHUB_ENV
echo "ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true" >> $GITHUB_ENV
- uses: actions/checkout@v4
- name: Build app
run: make build
- name: Launch unit tests
run: make test-coverage
env:
isCI: true
SSH_KNOWN_HOSTS: "/root/.ssh/known_hosts"