mirror of
https://github.com/mas-cli/mas
synced 2024-12-04 01:09:21 +00:00
e9fcf2b254
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> # Manual Merge Cleanup: # .actrc # .github/workflows/pr-checks.yml # .github/workflows/release.yml # Brewfile # script/test # script/version_bump # Conflicts: # .github/workflows/build-test.yml # .gitignore # .swiftlint.yml # Brewfile.lock.json # Package.resolved # Sources/mas/Package.swift # Tests/masTests/.swiftlint.yml # script/bootstrap # script/build # script/format # script/lint # script/uninstall # script/version
18 lines
323 B
Bash
Executable file
18 lines
323 B
Bash
Executable file
#!/bin/bash -eu
|
|
#
|
|
# script/test
|
|
# mas
|
|
#
|
|
# Runs mas tests.
|
|
#
|
|
|
|
mas_dir="$(readlink -fn "$(dirname "${BASH_SOURCE:-"${0}"}")/..")"
|
|
|
|
if ! cd -- "${mas_dir}"; then
|
|
printf $'Error: Could not cd into mas directory: %s\n' "${mas_dir}" >&2
|
|
exit 1
|
|
fi
|
|
|
|
printf $'==> ✅ Testing mas (%s)\n' "$(script/version --write)"
|
|
|
|
swift test
|