Skip to content

feat: supporting namespaced auth tokens #9585

feat: supporting namespaced auth tokens

feat: supporting namespaced auth tokens #9585

name: Integration Tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
GO_VERSION: "1.21"
DAGGER_VERSION: "0.8.3"
jobs:
cli:
name: CLI Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true
- name: Install Dagger
run: |
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=$DAGGER_VERSION sh
- name: Install Mage
uses: magefile/mage-action@v3
with:
install-only: true
- name: Run CLI Tests
run: mage dagger:run test:cli
test:
name: Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
test:
[
"api",
"api/cache",
"fs/git",
"fs/local",
"fs/s3",
"fs/oci",
"import/export",
]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true
- name: Install Dagger
run: |
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=$DAGGER_VERSION sh
- name: Install Mage
uses: magefile/mage-action@v3
with:
install-only: true
- name: Run Integration Tests
run: mage dagger:run "test:integration ${{ matrix.test }}"
- name: Upload Flipt Service Logs
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: Flipt Service Logs
path: build/logs
retention-days: 5
ui:
name: UI Integration Tests
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true
- name: Install Dagger
run: |
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=$DAGGER_VERSION sh
- name: Install Mage
uses: magefile/mage-action@v3
with:
install-only: true
- name: Run UI Tests
run: mage dagger:run test:ui