Skip to content

feat(ofrep): http handler implementation #4543

feat(ofrep): http handler implementation

feat(ofrep): http handler implementation #4543

Workflow file for this run

name: ci
on:
push:
branches:
- feature/workflows
- main
pull_request:
branches:
- main
env:
GO_VERSION: '1.24'
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@19bb51245e9c80abacb2e91cc42b33fa478b8639 # v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 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@5a3ec84eff668545956fd18022155c47e93e2684 # 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
steps:
- name: Install Go
uses: actions/setup-go@19bb51245e9c80abacb2e91cc42b33fa478b8639 # v4
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 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@5a3ec84eff668545956fd18022155c47e93e2684 # 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