+swiftlint (#1549)

* +swiftlint

* test brewkit fixes

* brewkit 0.31.1

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
Pascal EDMOND 2023-05-19 00:54:31 +02:00 committed by GitHub
parent 899e3c215c
commit f1bd915135
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 13 deletions

View file

@ -77,8 +77,7 @@ jobs:
# tarring ourselves ∵ GHA-artifacts (ludicrously) lose permissions
# /ref https://github.com/actions/upload-artifact/issues/38
- name: create artifacts.tgz
run:
tar czvf $GITHUB_WORKSPACE/artifacts.tgz
run: tar czvf $GITHUB_WORKSPACE/artifacts.tgz
${{ steps.build.outputs.relative-paths }}
${{ steps.build.outputs.srcs-relative-paths }}
built srcs
@ -98,8 +97,7 @@ jobs:
strategy:
matrix:
platform: ${{ fromJson(needs.get-platform.outputs.test-matrix) }}
name:
test ${{ matrix.platform.name-extra }}
name: test ${{ matrix.platform.name-extra }}
outputs:
HAS_SECRETS: ${{ env.HAS_SECRETS }}
container: ${{ matrix.platform.container }}
@ -136,9 +134,8 @@ jobs:
# ubuntu+container test matrix entries. :/
TEA_PANTRY_PATH: ${{ github.workspace }}
- name: '[post]'
run:
echo "HAS_SECRETS=$HAS_SECRETS" >>$GITHUB_ENV
- name: "[post]"
run: echo "HAS_SECRETS=$HAS_SECRETS" >>$GITHUB_ENV
env:
HAS_SECRETS: ${{ secrets.AWS_S3_CACHE != null }}

View file

@ -0,0 +1,26 @@
distributable:
url: https://github.com/realm/SwiftLint/archive/refs/tags/{{version}}.tar.gz
strip-components: 1
versions:
github: realm/SwiftLint/releases/tags
platforms:
- darwin
provides:
- bin/swiftlint
warnings:
- vendored
build:
working-directory: vendor
script: |
curl -Lfo swiftlint.zip "https://github.com/realm/SwiftLint/releases/download/{{version}}/portable_swiftlint.zip"
unzip -o swiftlint.zip
mkdir -p "{{prefix}}/bin"
mv swiftlint "{{prefix}}/bin"
test:
script: test "$(swiftlint --version)" = {{version}}