Skip to content

Commit

Permalink
Merge pull request #51 from Kuniwak/only-spm
Browse files Browse the repository at this point in the history
Drop support for CocoaPods and Carthage
  • Loading branch information
Kuniwak authored Jun 11, 2024
2 parents 57ce703 + 33f1778 commit 6d721f8
Show file tree
Hide file tree
Showing 29 changed files with 206 additions and 2,337 deletions.
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

0 comments on commit 6d721f8

Please sign in to comment.