Commit graph

25 commits

Author SHA1 Message Date
Ross Goldberg
f9ce4136e4
Restore git describe check in version.
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-27 07:26:46 -04:00
Ross Goldberg
e9fcf2b254
Merge branch 'main' into upstream/releases/release-1.8.7
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
2024-10-27 01:25:38 -04:00
Ross Goldberg
3eaffa5c3e
Improve DocC.
Partial #592

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-23 06:17:43 -04:00
Ross Goldberg
d413d8cfa1
Move MasKit module to mas.
Move MasKitTests module to masTests.

Rename MasKit enum as Mas.

Upgrade swift-tools-version from 5.3 to 5.6.1.

swift-tools-version 5.5+ is necessary to allow test code to import executable target code,
to allow MasKit library code to be moved into the mas executable.

Upgrade to swift-tools-version to 5.6.1 instead of to 5.5 because they support all the same macOS versions.

Standardize comments.

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-14 03:44:03 -04:00
Ross Goldberg
466ea67194
Improve scripts: bootstrap, build, format, lint, test & version.
Allow them to be run from any directory.

Call version from lint & test to create Package.swift with version info.

Fail when accessing unset variables.

Improve variable names.

Fix lint issues.

Improve lint & format scripts.

Don't require user input to continue linting.

Much cleaner lint output.

Reorder lint output.

Get swift-format from Brewfile instead of from Package.swift:

 - Speeds up linting.
 - Properly models dependency (not a code dependency).
 - swift-format depends on an old version of swift-argument-parser. Will refactor to use SAP soon.

Include some improvements from 1.8.7 PR.

Other scripts need improvement, too.

Resolve #545

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
2024-10-05 20:33:45 -04:00
Ben Chatelain
c0950b130b
♻️ Split workflow into 4 jobs 2024-03-10 19:33:50 -06:00
Ben Chatelain
da8142dc99
🔨 Trigger version_bump, create branch, commit in brew_formula_update 2024-03-10 09:03:03 -06:00
Ben Chatelain
67e678452f
🔨 Add version_bump script
Moved swift package manifest manipulation out of version script
2024-03-09 11:23:14 -07:00
Ben Chatelain
d932b8c294
🔨 Fix core tap detection 2024-03-09 10:36:27 -07:00
Ben Chatelain
2c39d305ea 🔇 Remove extra chars from stdout 2024-02-18 18:31:00 -07:00
Ben Chatelain
bbbbb0167b 🔇 Hide output from git describe 2024-02-18 14:42:50 -07:00
Ben Chatelain
f7152f211d 🥅 Handle version script errors when invoked by act
| fatal: Not a valid object name HEAD
| MAS_VERSION: 0.0.0
2024-02-18 14:05:02 -07:00
Ben Chatelain
40d3cfde0d 🔨 Rename MAS_VERSION variable 2024-02-18 08:22:24 -07:00
Chris Araman
726b1868f2 🧹 Restore shellcheck (0.7.2) 2021-06-08 19:49:02 -07:00
Chris Araman
4848f422d6 🧹 Match swift-format to compiler version
Fixes #364.
2021-05-08 20:14:18 -07:00
Chris Araman
5a2d7717c9
♻️ Remove generated source file 2021-04-28 22:56:34 -07:00
Chris Araman
688900f4e8
🤖 Determine version from latest git tag 2021-04-28 22:51:33 -07:00
Chris Araman
5df17f7823
📦 Embed version string as Swift code 2021-04-28 12:22:08 -07:00
Ben Chatelain
767fb7c388 🔖 Version 1.8.1 2021-03-14 16:51:37 -07:00
Ben Chatelain
51bc8dd8f0 🔖 Update version script 2021-02-13 11:27:24 -07:00
Ben Chatelain
4e86d46ab6 🔖 Version 1.7.1 2020-09-07 11:37:10 -06:00
Ben Chatelain
9dadbcae3a 🔖 Version 1.7.0 2020-05-24 13:21:52 -06:00
Ben Chatelain
4c356bb7a3 💩 Hard-code version in version script 2020-05-11 21:02:25 -06:00
Ben Chatelain
e4123a5653 💡 Add file header doc comments to scripts 2019-01-18 21:37:51 -07:00
Ben Chatelain
f82111da55 📜 Add version script 2019-01-13 00:18:35 -07:00