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

Drop support for CocoaPods and Carthage #51

Merged
merged 2 commits into from
Jun 11, 2024
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
29 changes: 0 additions & 29 deletions .circleci/config.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Actions Lint
on:
pull_request:
paths:
- ".github/**"

jobs:
actionlint:
runs-on: ubuntu-latest

permissions:
checks: write
contents: read
pull-requests: write

steps:
- name: Checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- name: Run actionlint
uses: reviewdog/action-actionlint@89a03f6ba8c0a9fd238e82c075ffb34b86e40291 # v1.46.0
with:
reporter: github-pr-review
92 changes: 92 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: Test
on:
push:
branches:
- master
pull_request:

jobs:
test-linux:
runs-on: ubuntu-latest

permissions:
contents: read
checks: write

steps:
- name: checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- name: setup swift
uses: swift-actions/setup-swift@e1dca7c4a36344146bbc2803f0d538462477bb37 # v2.0.0
with:
swift-version: '5.10'

- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: .build
key: linux-spm-${{ hashfiles('**/Package.resolved') }}
restore-keys: |
linux-spm-

- name: Run tests
run: |
swift test

test-macos:
runs-on: macos-latest

permissions:
contents: read
checks: write

strategy:
matrix:
os:
- macOS
- iOS
- watchOS
- tvOS
# XXX: visionOS is not installed on macos-latest...
# - visionOS

steps:
- name: checkout
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
submodules: recursive

- name: setup swift
uses: swift-actions/setup-swift@e1dca7c4a36344146bbc2803f0d538462477bb37 # v2.0.0
with:
swift-version: '5.10'

- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: .build
key: macos-spm-${{ hashfiles('**/Package.resolved') }}
restore-keys: |
macos-spm-

- name: Setup jq
uses: dcarbone/install-jq-action@8867ddb4788346d7c22b72ea2e2ffe4d514c7bcb # v2.1.0

- name: Run tests
run: |
make "test-${{ matrix.os }}"

- name: Upload Logs
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
if: always() && matrix.os != 'macos'
with:
name: "test-${{ matrix.os }}-logs"
path: |
Logs/**/*.log
build/reports/junit-*.xml

- name: Publish Test Report
uses: mikepenz/action-junit-report@9379f0ccddcab154835d4e2487555ee79614fe95 # v4.2.1
if: always() && matrix.os != 'macos'
with:
report_paths: |
build/reports/junit-*.xml
Loading