Skip to content

Commit

Permalink
refactor: Update Go echo server build process
Browse files Browse the repository at this point in the history
  • Loading branch information
PlugFox committed Jul 19, 2024
1 parent 43b5f8e commit 569c4b7
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ jobs:
if: steps.cache-echo-restore.outputs.cache-hit != 'true'
working-directory: ./tool/echo
run: |
mkdir -p ~/go/bin
mkdir -p ~/build/bin/
go get
go build -o ~/go/bin/echo echo.go
go build -o ~/build/bin/echo echo.go
- name: 📥 Save Go echo server
id: cache-echo-save
Expand Down Expand Up @@ -147,6 +147,14 @@ jobs:
$PWD/.pub_cache/
key: ${{ runner.os }}-spinify-${{ env.pub-cache-name }}-${{ hashFiles('**/pubspec.yaml') }}

#- name: 📢 Run Echo server
# id: run-echo-server
# timeout-minutes: 1
# run: |
# ~/build/bin/echo &
# env:
# PORT: 8080

- name: 🧪 Run tests
id: run-tests
timeout-minutes: 10
Expand All @@ -158,6 +166,19 @@ jobs:
--timeout=10m --concurrency=12 --color \
test/unit_test.dart
#- name: ⛔ Stop Go server
# timeout-minutes: 1
# run: |
# kill $(lsof -t -i:8080)

- name: 🧹 Cleanup artifacts
id: cleanup-artifacts
if: always()
timeout-minutes: 1
run: |
rm -rf ~/build
echo "Artifacts cleaned up."
#- name: 🔍 Format coverage
# id: format-coverage
# timeout-minutes: 1
Expand Down

0 comments on commit 569c4b7

Please sign in to comment.