Skip to content

Commit

Permalink
WIP-add-debian-test-in-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
vmercierfr committed Oct 29, 2023
1 parent 9049f84 commit 5c35135
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
number: ${{ steps.finder.outputs.pr }}
path: code-coverage-results.md
recreate: true

helm:
name: helm
runs-on: ubuntu-latest
Expand All @@ -57,6 +58,7 @@ jobs:
run: helm plugin install --version $HELM_UNITTEST_VERSION https://github.com/helm-unittest/helm-unittest.git
- name: Run Helm test
run: make helm-test

kubeconform:
name: kubeconform
runs-on: ubuntu-latest
Expand All @@ -70,3 +72,29 @@ jobs:
&& tar -C /usr/local/bin/ -xzvf /tmp/kubeconform.tar.gz
- name: Run Kubeconform test
run: make kubeconform

debian:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-go@v4
with:
go-version: stable

- name: Set up QEMU for ARM64 build
uses: docker/setup-qemu-action@v3

- uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean --skip=publish --skip=docker --snapshot
env:
GORELEASER_CURRENT_TAG: 0.0.0

- name: Run Debian package tests
run: make debian-test
17 changes: 17 additions & 0 deletions configs/prometheus-rds-exporter/prometheus-rds-exporter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Log format (text or json)
# log-format: json

# Path under which to expose metrics
# metrics-path: /metrics

# Address to listen on for web interface
# listen-address: ":9043"

# AWS profile
# aws-profile: my_profile

# AWS IAM ARN role to assume to fetch metrics
# aws-assume-role-arn: arn:aws:iam::000000000000:role/prometheus-rds-exporter

# AWS assume role session name
# aws-assume-role-session: prometheus-rds-exporter

0 comments on commit 5c35135

Please sign in to comment.