Test and Build #427
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: Test and Build | |
on: | |
schedule: | |
- cron: '38 11 * * *' | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
# We will include this workflow in the ghcr-build-and-publish.yaml workflow. | |
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_call | |
workflow_call: | |
jobs: | |
test-and-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23" | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Test and Build | |
run: make all | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: packages | |
path: build/* |