Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add build workflow for sdkexamples #1657

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build

on:
push:
paths:
- sdkexamples/**
branches:
- main
pull_request:
paths:
- sdkexamples/**
branches:
- main

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # [email protected]
- name: Setup Go sdkexamples/go.mod file
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # [email protected]
with:
go-version-file: 'sdkexamples/go.mod'
check-latest: true
- name: Build sdkexamples
run: make sdkexamples
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ app/*
resources/
helm.sh/
docs.helm.sh/
sdkexamples/sdkexamples

# JetBrains IDEs (GoLand, IntelliJ, ...) config folder
.idea
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ run-link-checker:

check-links-ci: set-up-link-checker run-link-checker

.PHONY: sdkexamples
sdkexamples:
make -C sdkexamples

serve:
hugo server --buildDrafts --buildFuture --bind 0.0.0.0

Expand Down
3 changes: 3 additions & 0 deletions sdkexamples/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.PHONY: build
build: $(BINDIR)/$(BINNAME)
go build ./...