Skip to content

Commit

Permalink
Merge branch 'release/6.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
sinoru committed May 12, 2022
2 parents 2b481ad + dabec54 commit 52788cd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
matrix:
virtual-environment: ["ubuntu-18.04", "ubuntu-20.04", "macos-11", "macos-12"]
swift-version: ["5.5.3", "5.6.1"]
swiftlint-version: ["0.47.1", "master", "809dcc6bdcf40b35fc23c01086fa884f84ad9473"]

runs-on: ${{ matrix.virtual-environment }}
steps:
- uses: actions/checkout@master
Expand All @@ -52,6 +54,7 @@ jobs:
- uses: ./
with:
working-directory: test/Warnings
swiftlint-version: ${{ matrix.swiftlint-version }}

swiftlint-tests:
name: SwiftLint Tests
Expand All @@ -69,11 +72,15 @@ jobs:
echo SWIFTLINT_OS_VERSION_HASH="$(uname -prsv | openssl dgst -sha256 -binary | xxd -p -c 256)" >> $GITHUB_ENV
echo SWIFTLINT_PATH="$SWIFTLINT_PATH" >> $GITHUB_ENV
echo SWIFTLINT_PACKAGE_ARGS="--package-path "$SWIFTLINT_PATH" -c release --manifest-cache local --disable-index-store --use-integrated-swift-driver" >> $GITHUB_ENV
- uses: actions/checkout@v3
with:
repository: 'realm/SwiftLint'
ref: '${{ env.SWIFTLINT_VERSION }}'
path: '${{ env.SWIFTLINT_PATH }}'
- run: |
git init -q "${{ env.SWIFTLINT_PATH }}"
pushd "${{ env.SWIFTLINT_PATH }}"
git remote add origin https://github.com/realm/SwiftLint.git
git fetch --no-tags --prune --progress --no-recurse-submodules --depth 1 origin "${{ inputs.swiftlint-version }}"
git checkout --progress --force FETCH_HEAD
popd
shell: bash
- uses: actions/cache@v3
id: cache
with:
Expand Down
9 changes: 8 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ runs:
echo SWIFTLINT_PATH="$SWIFTLINT_PATH" >> $GITHUB_ENV
echo SWIFTLINT_PACKAGE_ARGS="--package-path "$SWIFTLINT_PATH" -c release --manifest-cache local --disable-index-store --use-integrated-swift-driver" >> $GITHUB_ENV
shell: bash
- run: git clone --depth 1 --branch "${{ inputs.swiftlint-version }}" https://github.com/realm/SwiftLint.git "${{ env.SWIFTLINT_PATH }}"
- run: |
git init -q "${{ env.SWIFTLINT_PATH }}"
pushd "${{ env.SWIFTLINT_PATH }}"
git remote add origin https://github.com/realm/SwiftLint.git
git fetch --no-tags --prune --progress --no-recurse-submodules --depth 1 origin "${{ inputs.swiftlint-version }}"
git checkout --progress --force FETCH_HEAD
popd
shell: bash
- uses: actions/cache@v3
id: cache
Expand Down

0 comments on commit 52788cd

Please sign in to comment.