Skip to content

feat: add audit logging for rollout actions #8058

feat: add audit logging for rollout actions

feat: add audit logging for rollout actions #8058

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- main
paths-ignore:
- "logos/**"
- "**.md"
- "**.txt"
pull_request:
paths-ignore:
- "logos/**"
- "**.md"
- "**.txt"
workflow_dispatch:
jobs:
test:
name: "Tests (Go)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
check-latest: true
cache: true
- name: Install Dagger
run: |
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | sh
- uses: GeorgeMac/mage-action@gm/tools-add-path-debug
with:
version: latest
args: dagger:run test:unit
- name: Upload Coverage
uses: codecov/codecov-action@v3.1.4
ui:
name: "Tests (UI)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
cache: "npm"
cache-dependency-path: ui/package-lock.json
- name: Unit Test
run: |
npm ci
npm run test
working-directory: ui
migration:
name: "Tests (Migration)"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
check-latest: true
cache: true
- name: Install Dagger
run: |
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | sh
- uses: GeorgeMac/mage-action@gm/tools-add-path-debug
with:
version: latest
args: dagger:run test:migration
- name: Upload Coverage
uses: codecov/codecov-action@v3.1.4
database:
name: Database Test
runs-on: ubuntu-latest
strategy:
matrix:
database: ["mysql", "postgres", "cockroachdb"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.20"
check-latest: true
cache: true
- name: Unit Test ${{ matrix.database }}
env:
FLIPT_TEST_DATABASE_PROTOCOL: ${{ matrix.database }}
run: go test -count=1 -v ./...