updates #25
Workflow file for this run
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: Checks | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| sdk: | |
| name: SDK (Go ${{ matrix.go }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| go: ["1.21.x", "1.25.x"] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ matrix.go }} | |
| cache-dependency-path: go.sum | |
| - name: Test SDK | |
| run: go test -race ./... | |
| - name: Build CLI | |
| run: make build | |
| openfeature: | |
| name: OpenFeature provider | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.25.x" | |
| cache-dependency-path: | | |
| go.sum | |
| openfeature/go.sum | |
| - name: Test provider | |
| run: make test-openfeature | |
| - name: Verify module boundaries | |
| run: make verify-packages | |
| example: | |
| name: Featurevisor example-1 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| path: featurevisor-go | |
| - uses: actions/checkout@v7 | |
| with: | |
| repository: featurevisor/featurevisor | |
| ref: main | |
| path: featurevisor | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: "1.25.x" | |
| cache-dependency-path: featurevisor-go/go.sum | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version-file: "featurevisor/.nvmrc" | |
| cache: npm | |
| cache-dependency-path: featurevisor/package-lock.json | |
| - name: Build Featurevisor CLI | |
| working-directory: featurevisor | |
| run: | | |
| npm ci | |
| npm run build | |
| - name: Run example-1 through Go SDK | |
| working-directory: featurevisor-go | |
| run: go run ./cmd/main.go test --projectDirectoryPath=../featurevisor/examples/example-1 --onlyFailures |