mirror of
https://github.com/glauth/glauth.git
synced 2026-10-25 05:30:47 +00:00
0479c455fb
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: ci
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.25.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@v7
|
|
- 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
|