From 3d0b20073959cff9f604ce9d7bfc785d384c7970 Mon Sep 17 00:00:00 2001 From: Lim Chee Kin Date: Sun, 22 Oct 2023 21:10:57 +0800 Subject: [PATCH] chore: removed 'build' job from publish-draft workflow and updated ci-integration-test.sh to display integration_response_data.json --- .github/workflows/browser-tests.yaml | 2 +- .github/workflows/publish-draft.yaml | 8 ++------ ci-integration-test.sh | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/browser-tests.yaml b/.github/workflows/browser-tests.yaml index e108456..c90136f 100644 --- a/.github/workflows/browser-tests.yaml +++ b/.github/workflows/browser-tests.yaml @@ -36,7 +36,7 @@ jobs: run: ./ci-integration-test.sh - name: Git Commit Integration Test Reports - if: github.event_name == 'push' + if: github.event_name == 'push' && github.ref == 'refs/heads/main' run: | git config --global user.name "GitHub Actions" git config --global user.email "github@users.noreply.github.com" diff --git a/.github/workflows/publish-draft.yaml b/.github/workflows/publish-draft.yaml index b8ae49c..9d30eda 100644 --- a/.github/workflows/publish-draft.yaml +++ b/.github/workflows/publish-draft.yaml @@ -4,15 +4,11 @@ on: tags: # trigger the publish job on tag creation - "*" jobs: - build: - uses: ./.github/workflows/build-wasm-js.yaml - test: - needs: build uses: ./.github/workflows/browser-tests.yaml publish_github_release: - needs: [build, test] + needs: test runs-on: ubuntu-latest permissions: contents: write @@ -23,7 +19,7 @@ jobs: bodyFile: "RELEASE.md" publish_pub_dev: - needs: [build, test] + needs: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/ci-integration-test.sh b/ci-integration-test.sh index ba8cfc8..bdea862 100755 --- a/ci-integration-test.sh +++ b/ci-integration-test.sh @@ -1 +1 @@ -flutter drive --driver=test_driver/integration_test.dart --target integration_test/surrealdb_wasm_test.dart -d web-server --release --browser-name=chrome +flutter drive --driver=test_driver/integration_test.dart --target integration_test/surrealdb_wasm_test.dart -d web-server --release --browser-name=chrome && cat integration_test/reports/integration_response_data.json