diff --git a/.github/workflows/ark.artifacts.yaml b/.github/workflows/ark.artifacts.yaml deleted file mode 100644 index 6ff2413c..00000000 --- a/.github/workflows/ark.artifacts.yaml +++ /dev/null @@ -1,55 +0,0 @@ -name: Build and Upload Binaries and WASM - -on: - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: 1.23.1 - - - name: Build binaries - run: make build-all - - - name: Build WASM SDK - run: | - cd pkg/client-sdk - make build-wasm - - - name: Upload server binaries - uses: actions/upload-artifact@v4 - with: - name: server-binaries - path: ./server/build - if-no-files-found: error - retention-days: 5 - compression-level: 6 - overwrite: true - - - name: Upload client binaries - uses: actions/upload-artifact@v4 - with: - name: client-binaries - path: ./client/build - if-no-files-found: error - retention-days: 5 - compression-level: 6 - overwrite: true - - - name: Upload WASM SDK - uses: actions/upload-artifact@v4 - with: - name: wasm-sdk - path: pkg/client-sdk/build - if-no-files-found: error - retention-days: 5 - compression-level: 0 - overwrite: true \ No newline at end of file diff --git a/.github/workflows/ark.autogen_client.yaml b/.github/workflows/ark.autogen_client.yaml deleted file mode 100644 index f5990103..00000000 --- a/.github/workflows/ark.autogen_client.yaml +++ /dev/null @@ -1,47 +0,0 @@ -name: Verify SDK Autogen REST Client - -on: - push: - branches: - - master - paths: - - "api-spec/**" - pull_request: - branches: - - master - paths: - - "api-spec/**" - -jobs: - verify-client: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '>=1.23.1' - - - name: Run go work sync - run: go work sync - - - name: Install Swagger - run: go install github.com/go-swagger/go-swagger/cmd/swagger@latest - - - name: Generate Client - working-directory: pkg/client-sdk - run: make genrest - - - name: Check for uncommitted changes - run: | - git add . - git diff --staged --exit-code - - - name: Fail if changes detected - if: failure() - run: | - echo "❌ Generated client is out of date!" - echo "Please run 'make genrest' and commit the changes." - exit 1 \ No newline at end of file diff --git a/.github/workflows/ark.integration.yaml b/.github/workflows/ark.integration.yaml deleted file mode 100755 index 28ac256a..00000000 --- a/.github/workflows/ark.integration.yaml +++ /dev/null @@ -1,31 +0,0 @@ -name: ci_integration - -on: - push: - branches: - - master - pull_request: - branches: - - master - -jobs: - test: - name: integration tests - runs-on: ubuntu-latest - defaults: - run: - working-directory: ./server - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v4 - with: - go-version: '>=1.23.1' - - name: Run go work sync - run: go work sync - - - name: Run Nigiri - uses: vulpemventures/nigiri-github-action@v1 - - - name: integration testing - run: make integrationtest - \ No newline at end of file diff --git a/.github/workflows/ark.proto.yaml b/.github/workflows/ark.proto.yaml deleted file mode 100644 index 4f9333f4..00000000 --- a/.github/workflows/ark.proto.yaml +++ /dev/null @@ -1,27 +0,0 @@ -name: API Spec Changes - -on: - push: - branches: - - master - paths: - - "api-spec/**" - pull_request: - branches: - - master - paths: - - "api-spec/**" - - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - uses: bufbuild/buf-setup-action@v1.3.1 - - - name: check proto linting - run: buf lint \ No newline at end of file diff --git a/.github/workflows/ark.release.yaml b/.github/workflows/ark.release.yaml deleted file mode 100755 index 18355860..00000000 --- a/.github/workflows/ark.release.yaml +++ /dev/null @@ -1,144 +0,0 @@ -name: Release Binaries and Docker Build - -on: - release: - types: [released] - -permissions: - contents: write - packages: write - -jobs: - build-and-upload: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: 1.23.1 - - # Build binaries for all architectures - - name: Build binaries - run: make build-all - - # Server binary uploads - - name: Upload server binary (Linux, AMD64) - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./server/build/arkd-linux-amd64 - asset_name: arkd-linux-amd64 - asset_content_type: application/octet-stream - - - name: Upload server binary (Linux, ARM) - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./server/build/arkd-linux-arm64 - asset_name: arkd-linux-arm64 - asset_content_type: application/octet-stream - - - name: Upload server binary (Darwin, AMD64) - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./server/build/arkd-darwin-amd64 - asset_name: arkd-darwin-amd64 - asset_content_type: application/octet-stream - - - name: Upload server binary (Darwin, ARM) - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./server/build/arkd-darwin-arm64 - asset_name: arkd-darwin-arm64 - asset_content_type: application/octet-stream - - # CLI binary uploads - - name: Upload client binary (Linux, AMD64) - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./client/build/ark-linux-amd64 - asset_name: ark-linux-amd64 - asset_content_type: application/octet-stream - - - name: Upload client binary (Linux, ARM) - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./client/build/ark-linux-arm64 - asset_name: ark-linux-arm64 - asset_content_type: application/octet-stream - - - name: Upload client binary (Darwin, AMD64) - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./client/build/ark-darwin-amd64 - asset_name: ark-darwin-amd64 - asset_content_type: application/octet-stream - - - name: Upload client binary (Darwin, ARM) - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./client/build/ark-darwin-arm64 - asset_name: ark-darwin-arm64 - asset_content_type: application/octet-stream - - # WASM SDK upload - - name: Upload WASM SDK - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: pkg/client-sdk/build/ark-sdk.wasm - asset_name: ark-sdk.wasm - asset_content_type: application/wasm - - docker-build-and-push: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Docker - uses: docker/setup-buildx-action@v1 - - - name: Login to GitHub Container Registry - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Build and push Docker image - uses: docker/build-push-action@v2 - with: - context: . - push: true - tags: ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }},ghcr.io/${{ github.repository }}:latest - platforms: linux/amd64,linux/arm64 - build-args: | - VERSION=${{ github.event.release.tag_name }} \ No newline at end of file diff --git a/.github/workflows/ark.trivy.yaml b/.github/workflows/ark.trivy.yaml deleted file mode 100644 index 8ea82350..00000000 --- a/.github/workflows/ark.trivy.yaml +++ /dev/null @@ -1,38 +0,0 @@ -name: Trivy Security Scan - -on: - push: - branches: ["master"] - pull_request: - branches: ["master"] - -jobs: - build: - name: Build and Scan - runs-on: ubuntu-20.04 - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - - - name: Build an image from Dockerfile - uses: docker/build-push-action@v2 - with: - context: . - load: true - tags: ${{ github.repository }}:${{ github.sha }} - - - name: Run Trivy vulnerability scanner - uses: aquasecurity/trivy-action@0.28.0 - env: - # avoid GHCR rate limits, see https://github.com/aquasecurity/trivy-db/pull/440 and https://github.com/aquasecurity/trivy-action/issues/389 - TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2 - with: - image-ref: "${{ github.repository }}:${{ github.sha }}" - format: "table" - exit-code: "1" - ignore-unfixed: true - vuln-type: "os,library" - severity: "CRITICAL,HIGH" diff --git a/.github/workflows/ark.unit.yaml b/.github/workflows/ark.unit.yaml deleted file mode 100755 index a8a8df14..00000000 --- a/.github/workflows/ark.unit.yaml +++ /dev/null @@ -1,119 +0,0 @@ -name: ci_unit - -on: - push: - branches: - - master - paths: - - 'server/**' - - 'pkg/client-sdk/**' - - 'common/**' - pull_request: - branches: - - master - paths: - - 'server/**' - - 'pkg/client-sdk/**' - - 'common/**' - -jobs: - check-go-sync: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Set up Go - uses: actions/setup-go@v4 - with: - go-version: '>=1.23.1' - - - name: Run go work sync - run: go work sync - - - name: Check for changes - run: | - if [[ -n $(git status --porcelain) ]]; then - echo "Changes detected after running go work sync and go mod tidy" - git diff - exit 1 - fi - - test-server: - name: server unit tests - runs-on: ubuntu-latest - defaults: - run: - working-directory: ./server - steps: - - uses: actions/setup-go@v4 - with: - go-version: '>=1.23.1' - - uses: actions/checkout@v3 - - name: check linting - uses: golangci/golangci-lint-action@v6 - with: - version: v1.61 - working-directory: ./server - args: --timeout 5m - - name: check code integrity - uses: securego/gosec@master - with: - args: '-severity high -quiet -exclude=G115 ./...' - - name: Run go work sync - run: go work sync - - name: unit testing - run: make test - - test-sdk: - name: sdk unit tests - runs-on: ubuntu-latest - defaults: - run: - working-directory: ./pkg/client-sdk - steps: - - uses: actions/setup-go@v4 - with: - go-version: '>=1.23.1' - - uses: actions/checkout@v3 - - name: check linting - uses: golangci/golangci-lint-action@v6 - with: - version: v1.61 - working-directory: ./pkg/client-sdk - args: --timeout 5m --skip-files=.*_test.go - - name: check code integrity - uses: securego/gosec@master - with: - args: '-severity high -quiet -exclude=G115 ./...' - - name: Run go work sync - run: go work sync - - name: unit testing - run: make test - - test-common: - name: common unit tests - runs-on: ubuntu-latest - defaults: - run: - working-directory: ./common - steps: - - uses: actions/setup-go@v4 - with: - go-version: '>=1.23.1' - - uses: actions/checkout@v3 - - name: check linting - uses: golangci/golangci-lint-action@v6 - with: - version: v1.61 - working-directory: ./common - args: --timeout 5m - - name: check code integrity - uses: securego/gosec@master - with: - args: '-severity high -quiet -exclude=G115 ./...' - - name: Run go work sync - run: go work sync - - name: unit testing - run: make test - - \ No newline at end of file diff --git a/.github/workflows/ark.wasm_test.yaml b/.github/workflows/ark.wasm_test.yaml deleted file mode 100644 index bb97ac02..00000000 --- a/.github/workflows/ark.wasm_test.yaml +++ /dev/null @@ -1,37 +0,0 @@ -name: wasm_test - -on: - push: - branches: - - master - pull_request: - branches: - - '**' - -jobs: - test: - name: wasm integration tests - runs-on: ubuntu-latest - defaults: - run: - working-directory: ./pkg/client-sdk - steps: - - uses: actions/checkout@v3 - - - uses: actions/setup-go@v4 - with: - go-version: '>=1.23.1' - - - name: Run go work sync - run: go work sync - - - name: Install Python - uses: actions/setup-python@v5 - with: - python-version: '3.13' - - - name: Run Nigiri - uses: vulpemventures/nigiri-github-action@v1 - - - name: wasm test - run: make test-wasm \ No newline at end of file diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index 8b137891..00000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1 +0,0 @@ -