Skip to content

Commit

Permalink
Merge branch 'main' into feat-table-list-improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
steveninhle committed Jan 28, 2025
2 parents 3bd2b42 + 9d21e17 commit 80c3a7a
Show file tree
Hide file tree
Showing 262 changed files with 41,547 additions and 7,637 deletions.
133 changes: 133 additions & 0 deletions .github/workflows/pr-evaluation-ts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
name: pr-evaluation-ts

on:
pull_request:
branches:
- main
paths:
- "evaluation/typescript/**"
- "!**/**.md"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
NODE_VERSION: 20
NPM_TOKEN: ${{ secrets.NPM_TOKEN || '' }}
EVALUATION_DIRECTORY: "evaluation/typescript"

jobs:
install-dependencies:
name: Install dependencies
defaults:
run:
working-directory: ${{ env.EVALUATION_DIRECTORY }}
runs-on: ubuntu-latest
outputs:
YARN_CACHE_DIR: ${{ steps.yarn-cache-dir-path.outputs.dir }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Set yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: yarn-cache
with:
path: |
**/node_modules
**/.eslintcache
${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Init
run: make init

lint:
name: Lint
defaults:
run:
working-directory: ${{ env.EVALUATION_DIRECTORY }}
needs: install-dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v4
id: yarn-cache
with:
path: |
**/node_modules
**/.eslintcache
${{ needs.install-dependencies.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Format
run: make fmt
- name: Lint
run: make lint

unit-test:
name: Unit test
defaults:
run:
working-directory: ${{ env.EVALUATION_DIRECTORY }}
needs: install-dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v4
id: yarn-cache
with:
path: |
**/node_modules
**/.eslintcache
${{ needs.install-dependencies.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Generated proto code
run: make gen_proto
- name: Unit test
run: make test

build:
name: Build
defaults:
run:
working-directory: ${{ env.EVALUATION_DIRECTORY }}
needs: install-dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v4
id: yarn-cache
with:
path: |
**/node_modules
**/.eslintcache
${{ needs.install-dependencies.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Protoc
uses: arduino/setup-protoc@v3
- name: Generated proto code
run: make gen_proto
- name: Package Build
run: make build
1 change: 1 addition & 0 deletions .github/workflows/pr-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
paths-ignore:
- "ui/**"
- "**/**.md"
- "evaluation/typescript/**"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.1.0"
".": "1.2.0"
}
108 changes: 108 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ SERVICE_TOKEN_PATH=/workspaces/bucketeer/tools/dev/cert/service-token \
API_KEY_NAME="e2e-test-$(date +%s)-client" \
API_KEY_PATH=/workspaces/bucketeer/tools/dev/cert/api_key_client \
API_KEY_ROLE=SDK_CLIENT \
ENVIRONMENT_NAMESPACE=e2e \
ENVIRONMENT_ID=e2e \
make create-api-key
```

Expand All @@ -91,7 +91,7 @@ SERVICE_TOKEN_PATH=/workspaces/bucketeer/tools/dev/cert/service-token \
API_KEY_NAME="e2e-test-$(date +%s)-server" \
API_KEY_PATH=/workspaces/bucketeer/tools/dev/cert/api_key_server \
API_KEY_ROLE=SDK_SERVER \
ENVIRONMENT_NAMESPACE=e2e \
ENVIRONMENT_ID=e2e \
make create-api-key
```

Expand All @@ -105,7 +105,7 @@ GATEWAY_CERT_PATH=/workspaces/bucketeer/tools/dev/cert/tls.crt \
SERVICE_TOKEN_PATH=/workspaces/bucketeer/tools/dev/cert/service-token \
API_KEY_PATH=/workspaces/bucketeer/tools/dev/cert/api_key_client \
API_KEY_SERVER_PATH=/workspaces/bucketeer/tools/dev/cert/api_key_server \
ENVIRONMENT_NAMESPACE=e2e \
ENVIRONMENT_ID=e2e \
ORGANIZATION_ID=default \
make e2e
```
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ create-api-key:
--name=${API_KEY_NAME} \
--role=${API_KEY_ROLE} \
--output=${API_KEY_PATH} \
--environment-namespace=${ENVIRONMENT_NAMESPACE} \
--environment-id=${ENVIRONMENT_ID} \
--no-profile \
--no-gcp-trace-enabled

Expand All @@ -250,7 +250,7 @@ e2e-l4:
-gateway-port=9000 \
-gateway-cert=${GATEWAY_CERT_PATH} \
-service-token=${SERVICE_TOKEN_PATH} \
-environment-namespace=${ENVIRONMENT_NAMESPACE} \
-environment-id=${ENVIRONMENT_ID} \
-test-id=${TEST_ID}

.PHONY: e2e
Expand All @@ -265,7 +265,7 @@ e2e:
-gateway-port=443 \
-gateway-cert=${GATEWAY_CERT_PATH} \
-service-token=${SERVICE_TOKEN_PATH} \
-environment-namespace=${ENVIRONMENT_NAMESPACE} \
-environment-id=${ENVIRONMENT_ID} \
-organization-id=${ORGANIZATION_ID} \
-test-id=${TEST_ID}

Expand Down
Loading

0 comments on commit 80c3a7a

Please sign in to comment.