From 5c3958d3058bea85734c2e68efffe07465f84037 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 25 May 2025 01:43:35 +0200 Subject: [PATCH] Run mocked tests --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d235aa0..0aebedc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: branches: [ main ] jobs: - build: + test: runs-on: macos-latest strategy: @@ -29,7 +29,40 @@ jobs: - name: Build TypeScript run: npm run build - - name: Run tests - run: npm test + - name: Run linter + run: npm run lint --if-present + + - name: Run tests with coverage + run: npm run test:coverage env: - CI: true \ No newline at end of file + CI: true + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + if: matrix.node-version == '20.x' + with: + file: ./coverage/lcov.info + flags: unittests + name: codecov-umbrella + fail_ci_if_error: false + + build-swift: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup Swift + uses: swift-actions/setup-swift@v2 + with: + swift-version: "6.0" + + - name: Build Swift CLI + run: | + cd peekaboo-cli + swift build -c release + + - name: Run Swift tests + run: | + cd peekaboo-cli + swift test \ No newline at end of file