Skip to content

Commit

Permalink
chore: removed 'build' job from publish-draft workflow and updated ci…
Browse files Browse the repository at this point in the history
…-integration-test.sh to display integration_response_data.json
  • Loading branch information
limcheekin committed Oct 22, 2023
1 parent 0cfb33f commit 3d0b200
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/browser-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/publish-draft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ci-integration-test.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3d0b200

Please sign in to comment.