Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 25 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
name: Pull request
on: pull_request

on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
XCODE_VERSION: "16.3"
Expand Down Expand Up @@ -92,6 +102,7 @@ jobs:
- name: Build (SPM)
if: ${{ matrix.platform == 'macos' }}
run: swift build

- name: Build (Xcode)
if: ${{ matrix.platform != 'macos' }}
run: |
Expand All @@ -105,7 +116,13 @@ jobs:
if: ${{ matrix.platform == 'macos' }}
run: |
set -o pipefail
swift test | xcbeautify --renderer github-actions
swift test --enable-code-coverage | xcbeautify --renderer github-actions
TEST_BUNDLE=$(find .build/debug/ -name "*.xctest" | head -n 1)
TEST_EXECUTABLE="$TEST_BUNDLE/Contents/MacOS/$(basename "$TEST_BUNDLE" .xctest)"
xcrun llvm-cov export -format="lcov" \
-instr-profile .build/debug/codecov/default.profdata \
"$TEST_EXECUTABLE" > info.lcov

- name: Test (Xcode)
if: ${{ matrix.platform != 'macos' }}
run: |
Expand All @@ -114,3 +131,9 @@ jobs:
-scheme ${{ needs.prepare.outputs.scheme }} \
-destination "${{ steps.destination.outputs.destination }}" | \
xcbeautify --renderer github-actions

- name: Check coverage (SPM)
if: ${{ matrix.platform == 'macos' }}
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Release

on:
push:
tags:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# PrincipleMacros

![Swift](https://img.shields.io/badge/Swift-6.0-EF5239?logo=swift&labelColor=white)
[![Codecov](https://codecov.io/gh/NSFatalError/PrincipleMacros/graph/badge.svg?token=3883VA6VPI)](https://codecov.io/gh/NSFatalError/PrincipleMacros)

Essential tools that extend the capabilities of `SwiftSyntax`, simplifying the implementation of custom macros.

Expand Down
Loading