Skip to content

refactor: update monitoring interfaces and tests for improved stats h… #4

refactor: update monitoring interfaces and tests for improved stats h…

refactor: update monitoring interfaces and tests for improved stats h… #4

Workflow file for this run

name: Lint and Test
on:
pull_request:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
go-version: [1.24.x]
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Updating packages database
run: sudo apt-get -qq update
- name: Install CLI Dependencies
run: sudo apt-get install -y ldap-utils oathtool libpam0g-dev
- name: Checkout code
uses: actions/checkout@v4
- name: Fetch Go dependencies
working-directory: ./v2
run: go get -t -v ./...
- name: Fail if a .go file hasn't been formatted with 'go fmt'
working-directory: ./v2
run: diff -u <(echo -n) <(gofmt -d ./)
- name: Full compile test
working-directory: ./v2
run: make fast
- name: Output hashes to the build log
working-directory: ./v2
run: cat bin/*/glauth.sha256
- name: Integration test with compiled binary
working-directory: ./v2
run: make test