Files
rdpgw/.github/workflows/go.yml
Markus Häll a61f9ce30b Update GitHub Actions versions (#195)
* Update GitHub Actions versions

* Fix Go workflow checkout order

* Refresh apt metadata before installing PAM
2026-08-18 11:06:50 +02:00

41 lines
680 B
YAML

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v7
- name: Set up Go 1.x
uses: actions/setup-go@v7
with:
go-version: ^1.22
id: go
- name: Install pam-devel
run: |
sudo apt-get update
sudo apt-get install -y libpam-dev
- name: Install golint
run: go get -u golang.org/x/lint/golint
- name: Update go.sum
run: make mod
- name: Build
run: make build
- name: Test
run: make test