Skip to content

Commit

Permalink
Merge pull request #66 from flanksource/feat/new-workflows-build-test
Browse files Browse the repository at this point in the history
feat: add new GH workflows: build and test
  • Loading branch information
moshloop authored Jun 19, 2023
2 parents 30afc47 + d762241 commit 8bce117
Show file tree
Hide file tree
Showing 5 changed files with 187 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
on: pull_request
name: Build
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build Container
run: make docker
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
pull_request:

name: Test
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
- name: Checkout code
uses: actions/checkout@v3
- name: Test
run: make test
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: test/test-results.xml
check_name: E2E - ${{matrix.suite}}
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,9 @@ ENVTEST_K8S_VERSION = 1.25.0
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
$(ENVTEST): $(LOCALBIN)
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest

$(LOCALBIN):
mkdir -p $(LOCALBIN)

docker:
docker build . -t ${IMG}
47 changes: 47 additions & 0 deletions api/logs/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

100 changes: 100 additions & 0 deletions chart/crds/apm-hub.flanksource.com_loggingbackends.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,106 @@ spec:
backends:
items:
properties:
cloudwatch:
properties:
auth:
properties:
access_key:
properties:
name:
type: string
value:
type: string
valueFrom:
properties:
configMapKeyRef:
properties:
key:
type: string
name:
type: string
optional:
type: boolean
required:
- key
type: object
secretKeyRef:
properties:
key:
type: string
name:
type: string
optional:
type: boolean
required:
- key
type: object
type: object
type: object
region:
type: string
secret_key:
properties:
name:
type: string
value:
type: string
valueFrom:
properties:
configMapKeyRef:
properties:
key:
type: string
name:
type: string
optional:
type: boolean
required:
- key
type: object
secretKeyRef:
properties:
key:
type: string
name:
type: string
optional:
type: boolean
required:
- key
type: object
type: object
type: object
type: object
labels:
additionalProperties:
type: string
description: Labels are custom labels specified in the configuration
file for a backend that will be attached to each log line
returned by that backend.
type: object
log_group:
type: string
namespace:
type: string
query:
type: string
routes:
items:
properties:
id_prefix:
type: string
is_additive:
type: boolean
labels:
additionalProperties:
type: string
type: object
type:
type: string
type: object
type: array
type: object
elasticsearch:
properties:
address:
Expand Down

0 comments on commit 8bce117

Please sign in to comment.