Skip to content

Commit

Permalink
chore: added initial ci
Browse files Browse the repository at this point in the history
  • Loading branch information
astromechza committed May 10, 2024
1 parent 2333e70 commit c3f7e04
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: release

on: [push]

permissions:
contents: read

jobs:

test:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Fetch all tags
run: git fetch --force --tags
-
name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
-
name: Run Go Tests
run: go test ./... -cover -race
-
name: Build binary
run: go build -o score-k8s ./
-
name: Install license check tool
run: go install github.com/google/addlicense@latest
-
name: Check licenses
run: addlicense -l apache -check -v -ignore '**/*.yaml' -c Humanitec ./cmd ./internal/

0 comments on commit c3f7e04

Please sign in to comment.