From 590a9a209714415b9ab80e1e19263897409e19d0 Mon Sep 17 00:00:00 2001 From: shi yuhang <52435083+shiyuhang0@users.noreply.github.com> Date: Fri, 27 Sep 2024 12:11:56 +0800 Subject: [PATCH] Run macos integration test (#71) --- .github/workflows/integration-test.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index ac12820..8a25070 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -8,7 +8,7 @@ on: workflow_dispatch: jobs: - test: + test-ubuntu: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -22,3 +22,19 @@ jobs: run: | npm ci npm run integrationTest + test-macos: + runs-on: macos-latest + if: ${{ always() }} + needs: test-ubuntu + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: 'npm' + - name: Run integrationTest + env: + DATABASE_URL: ${{ secrets.DATABASE_URL }} + run: | + npm ci + npm run integrationTest