build(deps): bump github.com/calyptia/go-fluentbit-config/v2 from 2.1.1 to 2.2.0 #844
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
workflow_dispatch: | |
env: | |
DOCKER_HOST_IP: 172.17.0.1 | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.21' | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create k8s Kind Cluster | |
uses: helm/kind-action@v1.10.0 | |
timeout-minutes: 5 | |
with: | |
config: ./.github/workflows/kind/config | |
- name: Fix Kind dockerhost | |
run: ./dockerhost.sh | |
shell: bash | |
working-directory: .github/workflows/kind | |
- name: Test | |
run: | | |
go test -v -race -covermode=atomic -coverprofile=coverage.out ./... | |
go tool cover -html=coverage.out -o coverage.html | |
env: | |
FLUENTBIT_CONFIG_VALIDATOR_API_KEY: ${{ secrets.FLUENTBIT_CONFIG_VALIDATOR_API_KEY }} | |
FLUENTD_CONFIG_VALIDATOR_API_KEY: ${{ secrets.FLUENTD_CONFIG_VALIDATOR_API_KEY }} | |
SMTP_USERNAME: ${{ secrets.MAILTRAP_USERNAME }} | |
SMTP_PASSWORD: ${{ secrets.MAILTRAP_PASSWORD }} | |
# This is a known limitation with GitHub actions runners as they don't expose host.docker.internal properly. | |
HOST_IP: ${{ env.DOCKER_HOST_IP }} | |
- name: Upload coverage artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage reports | |
path: | | |
coverage.out | |
coverage.html | |
component-test: | |
name: Run component tests against Cloud image | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: read | |
steps: | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v4 | |
with: | |
repository: chronosphereio/calyptia-api | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v4 | |
with: | |
repository: chronosphereio/calyptia-cloud | |
token: ${{ secrets.CI_PAT }} | |
ref: 'main' | |
path: scripts/resources/cloud | |
- run: | | |
./scripts/setup-tests.sh | |
./scripts/run-tests.sh | |
env: | |
TEST_AUTH0_DOMAIN: ${{ secrets.TEST_AUTH0_DOMAIN }} | |
TEST_AUTH0_MANAGEMENT_CLIENT_ID: ${{ secrets.TEST_AUTH0_MANAGEMENT_CLIENT_ID }} | |
TEST_AUTH0_MANAGEMENT_CLIENT_SECRET: ${{ secrets.TEST_AUTH0_MANAGEMENT_CLIENT_SECRET }} | |
shell: bash | |
timeout-minutes: 10 | |
- name: Dump docker logs on failure | |
if: failure() | |
continue-on-error: true | |
uses: jwalton/gh-docker-logs@v2 |