Skip to content

Commit

Permalink
chore: move everything apart from clients to starship (#438)
Browse files Browse the repository at this point in the history
* move everything apart from clients to starship

* move examples dir and docs dir to root dir

* update workflows to change dir

* fix go work, fix go.mod for client

* fix linit-check charts dir

* update dir for pr-test

* set default working dir to starship for pr-tests

* try to set gh-actions dir again

* try and set chart version in pr tests

* remove  from configfile as an option
  • Loading branch information
Anmol1696 committed May 6, 2024
1 parent e4e442d commit cb14bbc
Show file tree
Hide file tree
Showing 203 changed files with 100 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Build exposer
run: |
cd exposer && make build
cd starship/exposer && make build
build-registry:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
Expand All @@ -47,7 +47,7 @@ jobs:

- name: Build registry
run: |
cd registry && make build
cd starship/registry && make build
build-faucet:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
Expand All @@ -64,4 +64,4 @@ jobs:

- name: Build faucet
run: |
cd faucet && make build
cd starship/faucet && make build
14 changes: 9 additions & 5 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:
- main
- release/*
paths:
- "docker/**"
- "starship/docker/**"
- ".github/workflows/docker.yaml"
pull_request:
branches:
- main
paths:
- "docker/**"
- "starship/docker/**"
- ".github/workflows/docker.yaml"
types: [opened, reopened, synchronize, ready_for_review]
workflow_dispatch:
Expand Down Expand Up @@ -58,17 +58,17 @@ jobs:
- name: Build
if: github.event_name == 'pull_request'
run: |
./scripts/build-docker.sh --type ${{ matrix.build-type }} --process all --version all
./starship/scripts/build-docker.sh --type ${{ matrix.build-type }} --process all --version all
- name: Build and push
if: github.event_name == 'push'
run: |
./scripts/build-docker.sh --type ${{ matrix.build-type }} --process all --version all --push
./starship/scripts/build-docker.sh --type ${{ matrix.build-type }} --process all --version all --push
- name: Force Build and Push for workflow dispatch
if: github.event_name == 'workflow_dispatch'
run: |
./scripts/build-docker.sh --type ${{ matrix.build-type }} --process all --version all --push --force
./starship/scripts/build-docker.sh --type ${{ matrix.build-type }} --process all --version all --push --force
build-push-chains:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
Expand All @@ -80,6 +80,10 @@ jobs:
env:
DOCKER_REPO: ghcr.io/cosmology-tech/starship

defaults:
run:
working-directory: starship

steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ jobs:
max-parallel: 1

env:
CONFIG_FILE: "tests/e2e/configs/${{ matrix.config-file }}"
CONFIG_FILE: "starship/tests/e2e/configs/${{ matrix.config-file }}"

defaults:
run:
working-directory: starship

steps:
- name: Checkout
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/lint-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
lint-test:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-latest

defaults:
run:
working-directory: starship/

steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pr-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ jobs:
fail-fast: true
max-parallel: 1

defaults:
run:
working-directory: starship

env:
CONFIG_FILE: "tests/e2e/configs/${{ matrix.config-file }}"
CONFIG_FILE: "starship/tests/e2e/configs/${{ matrix.config-file }}"

steps:
- name: Get PR branch
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/pr-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30

defaults:
run:
working-directory: starship

strategy:
matrix:
config-file:
Expand All @@ -32,7 +36,7 @@ jobs:
max-parallel: 3

env:
CONFIG_FILE: "tests/e2e/configs/${{ matrix.config-file }}"
CONFIG_FILE: "starship/tests/e2e/configs/${{ matrix.config-file }}"

steps:
- name: Checkout
Expand All @@ -50,7 +54,7 @@ jobs:
values: ${{ env.CONFIG_FILE }}
port-forward: true
version: 0.0.0
chart: ./charts/devnet
chart: ./starship/charts/devnet
cli-version: f35dc85407b350077765a0b3c17a4c1632c7d53c

- name: Run tests
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
with:
charts_dir: starship/charts
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_SKIP_EXISTING: true
10 changes: 5 additions & 5 deletions .github/workflows/smoke-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
max-parallel: 4

env:
CONFIG_FILE: "tests/smoke/ci/${{ matrix.config-file }}"
CONFIG_FILE: "starship/tests/smoke/ci/${{ matrix.config-file }}"

steps:
- name: Checkout
Expand All @@ -34,7 +34,7 @@ jobs:
values: ${{ env.CONFIG_FILE }}
port-forward: true
version: 0.0.0
chart: ./charts/devnet
chart: ./starship/charts/devnet
timeout: 10m
cli-version: f35dc85407b350077765a0b3c17a4c1632c7d53c

Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
values: ${{ env.CONFIG_FILE }}
port-forward: true
version: 0.0.0
chart: ./charts/devnet
chart: ./starship/charts/devnet
timeout: 10m
cli-version: f35dc85407b350077765a0b3c17a4c1632c7d53c

Expand All @@ -97,7 +97,7 @@ jobs:
max-parallel: 4

env:
CONFIG_FILE: "tests/smoke/ci/${{ matrix.config-file }}"
CONFIG_FILE: "starship/tests/smoke/ci/${{ matrix.config-file }}"

steps:
- name: Checkout
Expand All @@ -110,7 +110,7 @@ jobs:
values: ${{ env.CONFIG_FILE }}
port-forward: true
version: 0.0.0
chart: ./charts/devnet
chart: ./starship/charts/devnet
timeout: 10m
cli-version: f35dc85407b350077765a0b3c17a4c1632c7d53c

Expand Down
2 changes: 1 addition & 1 deletion clients/go/client/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/cosmology-tech/starship/clients/go/client
go 1.21

replace (
github.com/cosmology-tech/starship/registry => ../../../registry
github.com/cosmology-tech/starship/registry => ../../../starship/registry
github.com/strangelove-ventures/lens => github.com/Anmol1696/lens v0.1.1-0.20230331154219-5027f163133a
)

Expand Down
Loading

0 comments on commit cb14bbc

Please sign in to comment.