Skip to content

GitHub Workflow updates & testing #64

GitHub Workflow updates & testing

GitHub Workflow updates & testing #64

Workflow file for this run

name: Go build
env:
OVPN_HOST: ${{ vars.OVPN_HOST }}
on:
pull_request:
branches:
- main
paths-ignore:
- "README.md"
push:
branches:
- main
paths-ignore:
- "README.md"
# We test at a regular interval to ensure we are alerted to something breaking due
# to an API change, even if the code did not change.
schedule:
- cron: "0 0 * * *"
jobs:
build:
environment: TestingEnv
runs-on: ubuntu-latest
strategy:
matrix:
go:
- "1.19"
- "1.20"
- "1.21"
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Build
run: go build -v ./...
- name: Test
run: make test
- name: E2E Test
run: make e2e