Skip to content

Commit

Permalink
ci(github): run make build on pull request events (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: Toni Kangas <kangasta@users.noreply.github.com>
  • Loading branch information
villevsv-upcloud and kangasta authored Jul 23, 2024
1 parent b4f6244 commit 95689c5
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build
on:
pull_request:
paths:
- .github/workflows/build.yml
- apis/**
- build/**
- cmd/**
- config/**
- internal/**
- go.mod
- Makefile
jobs:
run_build:
name: Make build
runs-on: ubuntu-latest
steps:
- name: Checkout head
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Build
run: |
make submodules && \
make build
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "build"]
path = build
url = https://github.com/upbound/build
url = https://github.com/crossplane/build
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ NPROCS ?= 1
# to half the number of CPU cores.
GO_TEST_PARALLEL := $(shell echo $$(( $(NPROCS) / 2 )))

GO_REQUIRED_VERSION ?= 1.19
GO_REQUIRED_VERSION ?= 1.21
GOLANGCILINT_VERSION ?= 1.50.0
GO_STATIC_PACKAGES = $(GO_PROJECT)/cmd/provider $(GO_PROJECT)/cmd/generator
GO_LDFLAGS += -X $(GO_PROJECT)/internal/version.Version=$(VERSION)
Expand All @@ -55,9 +55,9 @@ GO_SUBDIRS += cmd internal apis
# Setup Kubernetes tools

KIND_VERSION = v0.15.0
UP_VERSION = v0.18.0
UP_VERSION = v0.31.0
UP_CHANNEL = stable
UPTEST_VERSION = v0.5.0
UPTEST_VERSION = v0.12.0
-include build/makelib/k8s_tools.mk

# ====================================================================================
Expand Down

0 comments on commit 95689c5

Please sign in to comment.