Skip to content

Commit

Permalink
chore: merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps committed Nov 15, 2023
2 parents 76f4cf9 + e53e1cf commit 3e93117
Show file tree
Hide file tree
Showing 213 changed files with 5,520 additions and 2,000 deletions.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,15 @@
"contributions": [
"code"
]
},
{
"login": "phenax",
"name": "Akshay Nair",
"avatar_url": "https://avatars.githubusercontent.com/u/11407672?v=4",
"profile": "http://ediblemonad.dev",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7,
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG GO_VERSION=1.20
ARG GO_VERSION=1.21

FROM golang:${GO_VERSION}

Expand Down
8 changes: 8 additions & 0 deletions .flipt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "1.0"
include:
- "**features.yml"
- "**features.yaml"
- "**.features.yml"
- "**.features.yaml"
exclude:
- internal/*
Binary file added .github/images/console-badge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .github/images/console-dark.png
Binary file not shown.
Binary file removed .github/images/console.png
Binary file not shown.
Binary file added .github/images/dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/images/devhunt-badge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .github/images/flags.png
Binary file not shown.
15 changes: 4 additions & 11 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,12 @@ on:
push:
branches:
- main
paths-ignore:
- "examples/**"
- "logos/**"
- "**.md"
- "**.txt"
pull_request:
paths-ignore:
- "examples/**"
- "logos/**"
- "**.md"
- "**.txt"
workflow_dispatch:

env:
GO_VERSION: "1.21"

jobs:
benchmark:
name: Benchmark SQLite
Expand All @@ -25,7 +18,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: "${{ vars.GO_VERSION }}"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

Expand Down
34 changes: 19 additions & 15 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@ on:
push:
branches:
- main
paths-ignore:
- "logos/**"
- "**.md"
- "**.txt"
pull_request:
paths-ignore:
- "logos/**"
- "**.md"
- "**.txt"
workflow_dispatch:

env:
GO_VERSION: "1.21"
DAGGER_VERSION: "0.8.3"

jobs:
cli:
name: CLI Integration Tests
Expand All @@ -25,14 +21,14 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: "${{ vars.GO_VERSION }}"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

- name: Install Dagger
run: |
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=${{ vars.DAGGER_VERSION }} sh
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=$DAGGER_VERSION sh
- name: Install Mage
uses: magefile/mage-action@v3
Expand All @@ -50,20 +46,28 @@ jobs:
fail-fast: false
matrix:
test:
["api", "api/cache", "fs/git", "fs/local", "fs/s3", "import/export"]
[
"api",
"api/cache",
"fs/git",
"fs/local",
"fs/s3",
"fs/oci",
"import/export",
]
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v4
with:
go-version: "${{ vars.GO_VERSION }}"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

- name: Install Dagger
run: |
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=${{ vars.DAGGER_VERSION }} sh
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=$DAGGER_VERSION sh
- name: Install Mage
uses: magefile/mage-action@v3
Expand Down Expand Up @@ -91,14 +95,14 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: "${{ vars.GO_VERSION }}"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

- name: Install Dagger
run: |
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=${{ vars.DAGGER_VERSION }} sh
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=$DAGGER_VERSION sh
- name: Install Mage
uses: magefile/mage-action@v3
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
workflow_dispatch:

env:
GO_VERSION: "1.21"

jobs:
go-lint:
name: "Lint Go"
Expand All @@ -15,7 +18,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: "${{ vars.GO_VERSION }}"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

Expand Down Expand Up @@ -66,7 +69,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: "${{ vars.GO_VERSION }}"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ permissions:
contents: write
packages: write

env:
GO_VERSION: "1.21"

jobs:
nightly-build:
runs-on: ${{ matrix.os }}
Expand All @@ -26,7 +29,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: "${{ vars.GO_VERSION }}"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

Expand Down Expand Up @@ -89,7 +92,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: "${{ vars.GO_VERSION }}"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
- "sdk/**"
- "rpc/**"

env:
GO_VERSION: "1.21"

jobs:
proto-lint:
name: "Lint Protos"
Expand Down Expand Up @@ -39,7 +42,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: "${{ vars.GO_VERSION }}"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release-tag-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ permissions:
contents: write
packages: write

env:
GO_VERSION: "1.21"

jobs:
tag-latest:
runs-on: ubuntu-latest
Expand All @@ -20,7 +23,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: "${{ vars.GO_VERSION }}"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ permissions:
contents: write
packages: write

env:
GO_VERSION: "1.21"

jobs:
build:
runs-on: ${{ matrix.os }}
Expand All @@ -26,7 +29,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: "${{ vars.GO_VERSION }}"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

Expand Down Expand Up @@ -89,7 +92,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: "${{ vars.GO_VERSION }}"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Release (Snapshot)
on:
workflow_dispatch:

env:
GO_VERSION: "1.21"

jobs:
snapshot-build:
runs-on: ${{ matrix.os }}
Expand All @@ -20,7 +23,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: "${{ vars.GO_VERSION }}"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

Expand Down Expand Up @@ -83,7 +86,7 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: "${{ vars.GO_VERSION }}"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

Expand Down
37 changes: 25 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@ on:
push:
branches:
- main
paths-ignore:
- "logos/**"
- "**.md"
- "**.txt"
pull_request:
paths-ignore:
- "logos/**"
- "**.md"
- "**.txt"
workflow_dispatch:

env:
GO_VERSION: "1.21"
DAGGER_VERSION: "0.8.3"

jobs:
test:
name: "Tests (Go)"
Expand All @@ -26,14 +22,14 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: "${{ vars.GO_VERSION }}"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

- name: Install Dagger
run: |
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=${{ vars.DAGGER_VERSION }} sh
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=$DAGGER_VERSION sh
- name: Install Mage
uses: magefile/mage-action@v3
Expand All @@ -46,6 +42,23 @@ jobs:
- name: Upload Coverage
uses: codecov/[email protected]

test-darwin:
name: "Tests (Go - Darwin)"
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

- name: Unit Test SQLite
env:
FLIPT_TEST_SHORT: "true"
run: go test -v -count=1 -timeout=60s -short ./...

ui:
name: "Tests (UI)"
runs-on: ubuntu-latest
Expand All @@ -72,14 +85,14 @@ jobs:

- uses: actions/setup-go@v4
with:
go-version: "${{ vars.GO_VERSION }}"
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true

- name: Install Dagger
run: |
cd /usr/local
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=${{ vars.DAGGER_VERSION }} sh
curl -L https://dl.dagger.io/dagger/install.sh | DAGGER_VERSION=$DAGGER_VERSION sh
- name: Install Mage
uses: magefile/mage-action@v3
Expand Down
Loading

0 comments on commit 3e93117

Please sign in to comment.