Skip to content

chore: fix more unit tests #15076

chore: fix more unit tests

chore: fix more unit tests #15076

name: Integration Tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
GO_VERSION: "1.23"
DAGGER_VERSION: "0.14.0"
concurrency:
group: "${{ github.workflow }}-${{ github.head_ref || github.ref }}"
cancel-in-progress: true
jobs:
test:
name: Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
test: ["envs", "envs_with_dir", "authn"]
steps:
- uses: actions/checkout@v4
- run: echo "INTEGRATION_TEST_NAME=${{ matrix.test }}" | tr '/' '-' >> $GITHUB_ENV
- name: Run Integration Tests
uses: dagger/dagger-for-github@v7
with:
verb: call
version: ${{ env.DAGGER_VERSION }}
args: test --source .:default integration --cases ${{ matrix.test }}
- name: Upload Flipt Service Logs
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: "build-logs-${{ env.INTEGRATION_TEST_NAME }}"
path: "build/logs"
retention-days: 5
ui:
name: UI Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Run UI Tests
uses: dagger/dagger-for-github@v7
with:
verb: call
version: ${{ env.DAGGER_VERSION }}
args: test --source .:default ui