From 50cb0bd5d6c822ec6f2fa726b7e2df3c5f8521c2 Mon Sep 17 00:00:00 2001 From: swiftty <62803132+swiftty@users.noreply.github.com> Date: Tue, 17 Jun 2025 10:25:47 +0900 Subject: [PATCH] Update CI --- .github/workflows/release.yml | 4 ++-- .github/workflows/tests.yml | 30 ++++++++++++++---------------- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f1a6b57..c9903e56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: inputs: version: type: choice - description: 'patch | minor | major' + description: "patch | minor | major" required: true options: - patch @@ -29,7 +29,7 @@ jobs: - name: update README run: | sed -i -E 's/from: \"(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\"/from: \"${{ steps.nextversion.outputs.next }}\"/g' README.md - + git add README.md git commit -m 'update README.md' git push origin main diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cd9dd90e..4e15be36 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,31 +2,29 @@ name: checks on: pull_request: - branches: [ main ] + branches: [main] jobs: tests: - strategy: fail-fast: false matrix: include: - - os: macos-11 - - os: macos-12 - - os: ubuntu-20.04 - swift: '5.5' + - os: macos-14 + - os: macos-15 + - os: ubuntu-latest + swift: "swift:5.9" - os: ubuntu-latest - swift: '5.7' + swift: "swift:6.1" runs-on: ${{ matrix.os }} + container: + image: ${{ matrix.swift || '' }} + steps: - - uses: actions/checkout@v4 - - uses: swift-actions/setup-swift@v2 - with: - swift-version: ${{ matrix.swift }} - if: ${{ startsWith(runner.os, 'Linux') }} - - name: Build - run: swift build -v - - name: Run tests - run: swift test -v + - uses: actions/checkout@v4 + - name: Build + run: swift build -v + - name: Run tests + run: swift test -v