Go build #221
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go build | |
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 | |
env: | |
OVPN_HOST: ${{ vars.OVPN_HOST }} | |
CLOUDCONNEXA_CLIENT_ID: ${{ secrets.CLOUDCONNEXA_CLIENT_ID }} | |
CLOUDCONNEXA_CLIENT_SECRET: ${{ secrets.CLOUDCONNEXA_CLIENT_SECRET }} |