mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-04-27 15:07:41 +00:00
Run mocked tests
This commit is contained in:
parent
d84b805894
commit
5c3958d305
1 changed files with 37 additions and 4 deletions
41
.github/workflows/ci.yml
vendored
41
.github/workflows/ci.yml
vendored
|
|
@ -7,7 +7,7 @@ on:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
|
|
@ -29,7 +29,40 @@ jobs:
|
||||||
- name: Build TypeScript
|
- name: Build TypeScript
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run linter
|
||||||
run: npm test
|
run: npm run lint --if-present
|
||||||
|
|
||||||
|
- name: Run tests with coverage
|
||||||
|
run: npm run test:coverage
|
||||||
env:
|
env:
|
||||||
CI: true
|
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
|
||||||
Loading…
Reference in a new issue