Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUAC 5181 software maintenance #2

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
3ccde63
Updated interface (#762)
stephencelis Aug 30, 2023
25c3dff
Added Prefire to "Plug-ins" (#746)
BarredEwe Aug 30, 2023
d4c218e
Add plug-ins to the list (#763)
stephencelis Aug 30, 2023
26ed3a2
Clean up: don't ignore Package.resolved, exclude test fixtures (#649)
stephencelis Aug 30, 2023
69df57d
Formalize Inline Snapshot Testing (#764)
stephencelis Sep 12, 2023
589e48c
fix format CI
stephencelis Sep 12, 2023
696b86a
Run swift-format
stephencelis Sep 12, 2023
1d6f1b1
Add release action
stephencelis Sep 12, 2023
8ae2b48
Add SPI config
stephencelis Sep 13, 2023
386fa74
Fix CONTRIBUTING.md (#773)
soo941226 Sep 13, 2023
9773a54
Escape carriage returns explicitly (#772)
stephencelis Sep 13, 2023
c8eead5
Update README.md
stephencelis Sep 13, 2023
d1082c4
Pin to SwiftSyntax 509.0.0 release (#774)
stephencelis Sep 14, 2023
7323e72
Support inline snapshot API migrations (#779)
stephencelis Oct 2, 2023
879016e
Run swift-format
stephencelis Oct 2, 2023
506b605
fix
stephencelis Oct 2, 2023
8ce00fa
Run swift-format
stephencelis Oct 2, 2023
c648dca
Update .spi.yml (#785)
finestructure Oct 6, 2023
2776788
Avoid additional trailing closure offset crash (#786)
stephencelis Oct 6, 2023
5b356ad
Run swift-format
stephencelis Oct 6, 2023
b4c58d7
Write to snapshot state before failing (#787)
stephencelis Oct 7, 2023
bbc9ec6
Transform `assertCustomInline()` to `assertCustomInline { ... }` (#788)
stephencelis Oct 7, 2023
e209343
Run swift-format
stephencelis Oct 7, 2023
20ae4ee
Update .spi.yml (#789)
finestructure Oct 8, 2023
bb0ea08
Widen swift-syntax dependency to 508.0.1..<510.0.0 (#795)
stephencelis Oct 13, 2023
0c5ffc6
Update README.md
stephencelis Nov 9, 2023
4862d48
Add record mode to inline snapshots (#809)
stephencelis Nov 14, 2023
59b663f
Improve the speed of comparing memory buffers by using a workaround t…
mbrandonw Nov 27, 2023
73acb97
Check resource bundle for files
mblackmon Jul 5, 2023
cfa2777
GUAC-4961 Change how reference image is found
lj-dickey Aug 3, 2023
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
20 changes: 7 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ jobs:
strategy:
matrix:
xcode:
- "13.2.1" # Swift 5.5.2
- "13.4.1" # Swift 5.6.1
- "14.0" # Swift 5.7
- "14.3.1"

name: macOS 12 (Xcode ${{ matrix.xcode }})
runs-on: macos-12
name: macOS 13 (Xcode ${{ matrix.xcode }})
runs-on: macos-13
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run tests
Expand All @@ -30,8 +28,6 @@ jobs:
strategy:
matrix:
swift:
- "5.5"
- "5.6"
- "5.7"

name: Ubuntu (Swift ${{ matrix.swift }})
Expand All @@ -40,16 +36,14 @@ jobs:
- uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: swift test

windows:
strategy:
matrix:
swift:
- "5.5"
- "5.6"
#- "5.7"
- "5.8"

name: Windows (Swift ${{ matrix.swift }})
runs-on: windows-2019
Expand All @@ -65,6 +59,6 @@ jobs:
git config --global core.autocrlf false
git config --global core.eol lf

- uses: actions/checkout@v2
- uses: actions/checkout@v3
- run: swift build
- run: swift test
29 changes: 29 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Format

on:
push:
branches:
- main

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

jobs:
swift_format:
name: swift-format
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Xcode Select
run: sudo xcode-select -s /Applications/Xcode_14.3.1.app
- name: Install
run: brew install swift-format
- name: Format
run: make format
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Run swift-format
branch: 'main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83 changes: 83 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Release
on:
release:
types: [published]
workflow_dispatch:
jobs:
project-channel:
runs-on: ubuntu-latest
steps:
- name: Dump Github context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Slack Notification on SUCCESS
if: success()
uses: tokorom/action-slack-incoming-webhook@main
env:
INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_PROJECT_CHANNEL_WEBHOOK_URL }}
with:
text: swift-snapshot-testing ${{ github.event.release.tag_name }} has been released.
blocks: |
[
{
"type": "header",
"text": {
"type": "plain_text",
"text": "swift-snapshot-testing ${{ github.event.release.tag_name}}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ${{ toJSON(github.event.release.body) }}
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ github.event.release.html_url }}"
}
}
]

releases-channel:
runs-on: ubuntu-latest
steps:
- name: Dump Github context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Slack Notification on SUCCESS
if: success()
uses: tokorom/action-slack-incoming-webhook@main
env:
INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_RELEASES_WEBHOOK_URL }}
with:
text: swift-snapshot-testing ${{ github.event.release.tag_name }} has been released.
blocks: |
[
{
"type": "header",
"text": {
"type": "plain_text",
"text": "swift-snapshot-testing ${{ github.event.release.tag_name}}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ${{ toJSON(github.event.release.body) }}
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ github.event.release.html_url }}"
}
}
]
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ playground.xcworkspace
# Package.pins
.build/
.swiftpm
Package.resolved

# CocoaPods
#
Expand Down
14 changes: 14 additions & 0 deletions .spi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This is manifest file for the Swift Package Index for it to auto-generate and
# host DocC documentation.
#
# For reference see https://swiftpackageindex.com/swiftpackageindex/spimanifest/documentation/spimanifest/commonusecases#Host-DocC-documentation-in-the-Swift-Package-Index

version: 1
builder:
configs:
- documentation_targets:
# First item in the list is the "landing" (default) target
- SnapshotTesting
- InlineSnapshotTesting
- platform: watchos
scheme: InlineSnapshotTesting
7 changes: 0 additions & 7 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

This file was deleted.

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

## Code of Conduct

This project and everyone participating in it is governed by its [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [email protected].
This project and everyone participating in it is governed by its [Code of Conduct](.github/CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [email protected].
Loading