Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andyundso committed Dec 7, 2023
1 parent b64e992 commit 6fcd4ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
24 changes: 5 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,11 @@ jobs:
id: npm-lint
run: npm run lint

- name: Run test server
run: |
docker compose build
docker compose up &
- name: Test
id: npm-ci-test
run: npm run ci-test

test-action:
name: GitHub Actions Test
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4

- name: Test Local Action
id: test-action
uses: ./
with:
milliseconds: 2000

- name: Print Output
id: output
run: echo "${{ steps.test-action.outputs.time }}"
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function run(): Promise<void> {
`docker context create target --docker "host=ssh://${sshUserAtHost}:${sshPort}"`,
{ stdio: [] }
)
execSync(`docker context use target`)
execSync(`docker context use target`, { stdio: [] })

core.info('Initialising Swarm if required ...')
execSync('docker node ls || docker swarm init', { stdio: [] })
Expand Down

0 comments on commit 6fcd4ef

Please sign in to comment.