mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-03-25 09:25:47 +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 ]
|
||||
|
||||
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
|
||||
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