mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 20:56:47 +00:00
* get rid of invoke_tests imports * add sudo * change path to /usr/bin/invoke_tests * create /usr/local/bin dir * remove local variables * fix group owner * set default 775 perm * delete invoke_tests symlink
11 lines
411 B
Bash
11 lines
411 B
Bash
#!/bin/bash -e -o pipefail
|
|
source ~/utils/utils.sh
|
|
|
|
echo "Install SwiftLint"
|
|
swiftlintUrl=$(curl -s "https://api.github.com/repos/realm/SwiftLint/releases/latest" | jq -r '.assets[].browser_download_url | select(contains("SwiftLint.pkg"))')
|
|
download_with_retries $swiftlintUrl "/tmp" "SwiftLint.pkg"
|
|
sudo installer -pkg /tmp/SwiftLint.pkg -target /
|
|
rm -rf /tmp/SwiftLint.pkg
|
|
|
|
invoke_tests "Linters" "SwiftLint"
|