From b7fbc2061b553bd0b639af1f41db641962ae111f Mon Sep 17 00:00:00 2001 From: msojocs Date: Sat, 6 Jul 2024 16:52:18 +0800 Subject: [PATCH] fix: docker expose in ci --- .github/actions/test/action.yml | 12 ++++++++++++ .github/workflows/release.yml | 5 ++++- test/runner/nwjs/module-prepare.sh | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/actions/test/action.yml diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml new file mode 100644 index 0000000..6ef49c9 --- /dev/null +++ b/.github/actions/test/action.yml @@ -0,0 +1,12 @@ +name: 'Hello World' +description: 'Greet someone' +inputs: + who-to-greet: # id of input + description: 'Who to greet' + required: true + default: 'World' +runs: + using: "composite" + steps: + - run: pnpm run test + shell: bash diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4047926..fdc4a9c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -149,7 +149,10 @@ jobs: ls -l test/wine # ./test/wine/wcc.exe pnpm run test-prepare - pnpm run test + # pnpm run test + - uses: ./.github/actions/test + with: + who-to-greet: 'Mona the Octocat' upload: name: Create release and upload artifacts diff --git a/test/runner/nwjs/module-prepare.sh b/test/runner/nwjs/module-prepare.sh index e5689d8..cd265f0 100755 --- a/test/runner/nwjs/module-prepare.sh +++ b/test/runner/nwjs/module-prepare.sh @@ -43,6 +43,7 @@ docker run -d -it\ sleep 10 curl http://localhost:8083 +docker ps exit 0 # curl http://localhost:8083/close # docker stop wine \ No newline at end of file