From 67a2700e9a55a7d52b2984fae8ed1b269a447749 Mon Sep 17 00:00:00 2001 From: Lemon Date: Wed, 6 Nov 2024 15:36:08 +0800 Subject: [PATCH] ci --- .github/workflows/ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e02449..71bd679 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,6 +50,13 @@ jobs: matrix: type: ['server', 'connect'] platform: [ubuntu-latest, windows-latest, macos-latest] + exclude: + # without windows image + - type: connect + platform: windows-latest + # runner without docker + - type: connect + platform: macos-latest runs-on: ${{ matrix.platform }} steps: @@ -57,17 +64,13 @@ jobs: id: checkout uses: actions/checkout@v4 - - name: Setup Docker - if: ${{ matrix.platform == 'macos-latest' }} - run: brew install docker-compose - - name: Setup Connect Server id: setup-connect-server if: ${{ matrix.type == 'connect' }} run: | - echo ${{ secrets.OP_CONNECT_CREDENTIALS }} > 1password-credentials.json + echo '${{ secrets.OP_CONNECT_CREDENTIALS }}' > 1password-credentials.json cp .github/fixture/docker-compose.yml docker-compose.yml - docker-compose up -d + docker compose up -d && sleep 10 - name: Test Connect id: test-connect