Skip to content

Commit

Permalink
refactor!: workspace + ports + adapters (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
segfault-magnet authored May 8, 2024
1 parent da0e762 commit 5a93223
Show file tree
Hide file tree
Showing 81 changed files with 1,927 additions and 1,397 deletions.
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
target
deployment
configurations
eth_node
fuel_node
helm
compose.yml
.git
*.rs.bk
.dockerignore
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @digorithm @hal3e @MujkicA @segfault-magnet @Salka1988 @Br1ght0ne
14 changes: 7 additions & 7 deletions .github/scripts/verify_chart_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
set -e

err() {
echo -e "\e[31m\e[1merror:\e[0m $@" 1>&2;
echo -e "\e[31m\e[1merror:\e[0m $@" 1>&2
}

status() {
WIDTH=12
printf "\e[32m\e[1m%${WIDTH}s\e[0m %s\n" "$1" "$2"
WIDTH=12
printf "\e[32m\e[1m%${WIDTH}s\e[0m %s\n" "$1" "$2"
}
# install dasel
curl -sSLf "https://github.com/TomWright/dasel/releases/download/v1.24.3/dasel_linux_amd64" -L -o dasel
chmod +x dasel
mv ./dasel /usr/local/bin/dasel
# check appVersion with crate package metadata
HELM_APP_VERSION=$(cat deployment/charts/Chart.yaml | dasel -r yaml 'appVersion')
CRATE_VERSION=$(cat Cargo.toml | dasel -r toml 'package.version')
CRATE_VERSION=$(cat Cargo.toml | dasel -r toml 'workspace.package.version')
if [ "$HELM_APP_VERSION" != "$CRATE_VERSION" ]; then
err "crate version $CRATE_VERSION, doesn't match helm app version $HELM_APP_VERSION"
exit 1
err "crate version $CRATE_VERSION, doesn't match helm app version $HELM_APP_VERSION"
exit 1
else
status "crate version matches helm chart app version $HELM_APP_VERSION"
status "crate version matches helm chart app version $HELM_APP_VERSION"
fi
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:

env:
DASEL_VERSION: https://github.com/TomWright/dasel/releases/download/v1.24.3/dasel_linux_amd64
RUST_VERSION: 1.77.0
RUST_VERSION: 1.77
FUEL_CORE_VERSION: 0.26.0
IMAGE_NAME: ${{ github.repository }}

Expand All @@ -27,7 +27,7 @@ jobs:
- run: |
curl -sSLf "$DASEL_VERSION" -L -o dasel && chmod +x dasel
mv ./dasel /usr/local/bin/dasel
MIN_VERSION=$(cat Cargo.toml | dasel -r toml 'package.rust-version')
MIN_VERSION=$(cat Cargo.toml | dasel -r toml 'workspace.package.rust-version')
RUST_VERSION="${{ env.RUST_VERSION }}"
echo "Comparing minimum supported toolchain ($MIN_VERSION) with ci toolchain (RUST_VERSION)"
test "$MIN_VERSION" == "$RUST_VERSION"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

Loading

0 comments on commit 5a93223

Please sign in to comment.