mirror of
https://github.com/bolkedebruin/rdpgw.git
synced 2026-09-01 03:51:28 +02:00
* Update GitHub Actions versions * Fix Go workflow checkout order * Refresh apt metadata before installing PAM
41 lines
680 B
YAML
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
|