From 51b0eeccf4bb85b91d2a67616f2933043878ed67 Mon Sep 17 00:00:00 2001 From: Ashish <93992470+ashpect@users.noreply.github.com> Date: Fri, 11 Oct 2024 16:06:27 +0530 Subject: [PATCH] Uncommenting wasm, java as they work (#37) * wasm, java works okay * fix lint * cleanup * Only trigger java lang * Only trigger wasm lang * revert back to both langs * try docker pruning after builds --- .github/workflows/golangci-lint.yml | 2 +- .github/workflows/langTest.yml | 4 ---- .github/workflows/startuptest.yml | 15 ++++++++++----- pkg/staging/stages.go | 6 +++--- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 87dbace..2acd610 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: latest + go-version: '1.x' - name: Lint with golangci-lint uses: golangci/golangci-lint-action@v6 with: diff --git a/.github/workflows/langTest.yml b/.github/workflows/langTest.yml index 7bc95a6..a76d674 100644 --- a/.github/workflows/langTest.yml +++ b/.github/workflows/langTest.yml @@ -18,10 +18,6 @@ jobs: with: fetch-depth: 0 - # TODO: - # - name: Lint - # run: docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.59.1 golangci-lint run -v --enable-all - - name: Build run: docker compose build diff --git a/.github/workflows/startuptest.yml b/.github/workflows/startuptest.yml index 8102638..50636cd 100644 --- a/.github/workflows/startuptest.yml +++ b/.github/workflows/startuptest.yml @@ -19,20 +19,25 @@ jobs: with: fetch-depth: 0 - # TODO: - # - name: Lint - # run: docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:v1.59.1 golangci-lint run -v --enable-all - - name: Build run: docker compose build + - name: Docker system prune after build + run: docker system prune -af + - name: Test Binary env: BUILDER_ARGS: "runtime rb" run: docker compose up --exit-code-from binary binary + - name: Docker system prune after test + run: docker system prune -af + - name: Test Startup-Rootless run: ./test/test.sh rootless startup - + + - name: Docker system prune after test + run: docker system prune -af + - name: Test Startup-Daemon run: ./test/test.sh client startup diff --git a/pkg/staging/stages.go b/pkg/staging/stages.go index 2801777..25cdbc2 100644 --- a/pkg/staging/stages.go +++ b/pkg/staging/stages.go @@ -24,9 +24,9 @@ var languageMap = map[string]string{ // "ts": "typescript", // "file": "file", // "rpc": "rpc", - // "wasm": "wasm", - // "java": "java", - // // "c": "c", + "wasm": "wasm", + "java": "java", + // "c": "c", // "cob": "cobol", // "go": "go", // "rs": "rust",