feat(flagd)!: add file mode to flagd provider (#648) #2
This file contains hidden or 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: | |
| - feature/workflows | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| GO_VERSION: '1.21' | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| env: | |
| GOPATH: /home/runner/work/open-feature/go-sdk-contrib | |
| GOBIN: /home/runner/work/open-feature/go-sdk-contrib/bin | |
| steps: | |
| - name: Install Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Environment | |
| run: | | |
| echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV | |
| echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
| - name: Module cache | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: go-mod-cache | |
| with: | |
| path: ~/go/pkg/mod | |
| key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }} | |
| - name: Run workspace init | |
| run: make workspace-init | |
| - name: Run linter | |
| run: make lint | |
| test: | |
| runs-on: ubuntu-latest | |
| services: | |
| # flagd-testbed for flagd-provider e2e tests | |
| flagd: | |
| image: ghcr.io/open-feature/flagd-testbed:v0.5.6 | |
| ports: | |
| - 8013:8013 | |
| # sync-testbed for flagd-provider e2e tests | |
| sync: | |
| image: ghcr.io/open-feature/sync-testbed:v0.5.6 | |
| ports: | |
| - 9090:9090 | |
| steps: | |
| - name: Install Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup Environment | |
| run: | | |
| echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV | |
| echo "$(go env GOPATH)/bin" >> $GITHUB_PATH | |
| - name: Module cache | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: go-mod-cache | |
| with: | |
| path: ~/go/pkg/mod | |
| key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }} | |
| - name: Run workspace init | |
| run: make workspace-init | |
| - name: Run tests, including e2e | |
| run: make e2e |