Skip to content

Commit

Permalink
Use actions/checkout@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyarnold committed Jul 9, 2024
1 parent c011b49 commit b834601
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
MacOS:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Apple tests
run: bazelisk test //Tests/...
Linux:
Expand All @@ -42,7 +42,7 @@ jobs:
container:
image: swift:${{ matrix.tag }}-focal
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: bazelbuild/setup-bazelisk@v2
- name: Yams tests
run: bazel test --test_output=all //Tests:UnitTests
8 changes: 4 additions & 4 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CMake
on:
push:
branches: [main]
paths:
paths:
- '.github/workflows/cmake.yml'
- '**/CMakeLists.txt'
- '**/*.cmake'
Expand All @@ -12,7 +12,7 @@ on:
- 'Sources/**/*.swift'
- 'Sources/**/module.modulemap'
pull_request:
paths:
paths:
- '.github/workflows/cmake.yml'
- '**/CMakeLists.txt'
- '**/*.cmake'
Expand All @@ -30,7 +30,7 @@ jobs:
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: brew install cmake ninja
- run: swift -version
- run: rm -rf build
Expand All @@ -47,7 +47,7 @@ jobs:
container:
image: swift:${{ matrix.tag }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: apt-get update && apt-get install -y ninja-build curl
- run: curl -L https://github.com/Kitware/CMake/releases/download/v3.23.1/cmake-3.23.1-linux-x86_64.tar.gz | tar xz --strip-components=1 -C /usr
- run: swift -version
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/jazzy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Jazzy
on:
push:
branches: [main]
paths:
paths:
- '.github/workflows/jazzy.yml'
- '.jazzy.yaml'
- '**/*.md'
Expand All @@ -12,7 +12,7 @@ on:
- 'Package*'
- 'Sources/**/*.swift'
pull_request:
paths:
paths:
- '.github/workflows/jazzy.yml'
- '.jazzy.yaml'
- '**/*.md'
Expand All @@ -27,7 +27,7 @@ jobs:
env:
DEVELOPER_DIR: /Applications/Xcode_15.0.app
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install SourceKitten
run: brew install sourcekitten
- run: swift build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Nightly
on:
push:
branches: [main]
paths:
paths:
- '.github/workflows/nightly.yml'
- 'Package*'
- 'Sources/**/*.[ch]'
Expand All @@ -12,7 +12,7 @@ on:
- 'Tests/**/*.swift'
- 'Tests/**/*.ya?ml'
pull_request:
paths:
paths:
- '.github/workflows/nightly.yml'
- 'Package*'
- 'Sources/**/*.[ch]'
Expand All @@ -29,7 +29,7 @@ jobs:
container:
image: swiftlang/swift:nightly
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: swift --version
- run: YAMS_DEFAULT_ENCODING=UTF16 swift test --parallel
- run: YAMS_DEFAULT_ENCODING=UTF8 swift test --parallel
2 changes: 1 addition & 1 deletion .github/workflows/swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
container:
image: ghcr.io/realm/swiftlint:0.54.0
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: SwiftLint
run: swiftlint lint --strict
4 changes: 2 additions & 2 deletions .github/workflows/swiftlint_analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: SwiftLint Analyze
on:
push:
branches: [main]
paths:
paths:
- '.github/workflows/swiftlint_analyze.yml'
- 'Yams.xcodeproj/**'
- 'Sources/**/*.[ch]'
Expand All @@ -25,7 +25,7 @@ jobs:
env:
DEVELOPER_DIR: /Applications/Xcode_15.0.app
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Generate xcodebuild.log
run: xcodebuild -sdk macosx -scheme Yams -project Yams.xcodeproj clean build-for-testing > xcodebuild.log
shell: bash
Expand Down

0 comments on commit b834601

Please sign in to comment.