Skip to content

Add CI & some basic tests for the plugin #2

Add CI & some basic tests for the plugin

Add CI & some basic tests for the plugin #2

Workflow file for this run

name: Swift
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test-macos:
runs-on: macos-13
env:
DEVELOPER_DIR: /Applications/Xcode_15.0.app/Contents/Developer
steps:
- uses: actions/checkout@v3
- name: Build
run: swift build -v
- name: Test
run: swift test -v --enable-code-coverage
- name: Coverage
uses: maxep/[email protected]
with:
output-file: ./coverage/lcov.info
- name: Report Coverage
uses: romeovs/[email protected]
with:
lcov-file: ./coverage/lcov.info
test-linux:
runs-on: ubuntu-22.04
strategy:
matrix:
swift: [5.9]
container: swift:${{ matrix.swift }}
steps:
- uses: actions/checkout@v3
- name: Build
run: swift build
- name: Run tests
run: swift test