Skip to content

Build and test

Build and test #67

Workflow file for this run

on:
schedule:
- cron: '5 11 * * 2'
push:
paths-ignore:
- 'charts/**'
- 'docs/**'
- '/*.md'
branches:
- 'main'
- 'release-*'
pull_request:
branches:
- 'main'
- 'release-*'
paths-ignore:
- 'charts/**'
- 'docs/**'
- '/*.md'
workflow_call:
name: Build and test
jobs:
codql-build:
permissions:
security-events: write
strategy:
matrix:
architecture: [amd64]
os: [linux]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
id: go
- name: Cache Go modules packages
uses: actions/[email protected]
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Download Go modules
run: go mod download
env:
GOPROXY: https://proxy.golang.org
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: go
- name: Build
run: GOOS=${{ matrix.os }} GOARCH=${{matrix.architecture}} go build -o bin/thundering-herd-scheduler ./cmd/thundering-herd-scheduler
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2