flipt 0.5.0

Official Rust SDK for Flipt
Documentation
name: Integration Test
on:
  push:
    branches:
      - main
  pull_request:

jobs:
  test:
    name: Test API
    runs-on: ubuntu-latest
    services:
      flipt:
        image: flipt/flipt:latest
        env:
          FLIPT_AUTHENTICATION_METHODS_TOKEN_ENABLED: true
          FLIPT_AUTHENTICATION_METHODS_TOKEN_BOOTSTRAP_TOKEN: 1ntegr@t10n
          FLIPT_AUTHENTICATION_REQUIRED: true
          FLIPT_LOG_ENCODING: json
        ports:
        - 8080:8080
        - 9000:9000

    steps:
      - name: Checkout Sources
        uses: actions/checkout@v3

      - name: Install Stable Toolchain
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: stable
          override: true
          components: rustfmt, clippy

      - name: Integration Test 
        uses: actions-rs/cargo@v1
        env:
          FLIPT_ENDPOINT: http://localhost:8080
          FLIPT_AUTH_TOKEN: 1ntegr@t10n
        with:
          command: test
          args: --features flipt_integration --test "integration*"