Skip to content

Commit fc68230

Browse files
authored
Rename sanity.sh to validate.sh (#96)
* Rename sanity.sh to validate.sh * Use 2020 as copyright year in header
1 parent a16a3db commit fc68230

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Sanity Check
1+
name: Validity Check
22

33
on:
44
pull_request:
55

66
jobs:
7-
sanity-check:
7+
validate:
88
runs-on: macOS-latest
99
steps:
1010
- name: Checkout
@@ -14,6 +14,6 @@ jobs:
1414
- name: Install Dependencies
1515
run: |
1616
brew install mint
17-
mint install nicklockwood/swiftformat@0.47.13 --no-link
17+
mint install nicklockwood/swiftformat@0.48.17 --no-link
1818
- name: run script
19-
run: ./scripts/sanity.sh
19+
run: ./scripts/validate.sh

.swiftformat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
--wrapcollections before-first
2424

2525
#file header
26-
--header "//===----------------------------------------------------------------------===//\n//\n// This source file is part of the MQTTNIO project\n//\n// Copyright (c) {created.year}-{year} Adam Fowler\n// Licensed under Apache License v2.0\n//\n// See LICENSE.txt for license information\n//\n// SPDX-License-Identifier: Apache-2.0\n//\n//===----------------------------------------------------------------------===//"
26+
--header "//===----------------------------------------------------------------------===//\n//\n// This source file is part of the MQTTNIO project\n//\n// Copyright (c) 2020-{year} Adam Fowler\n// Licensed under Apache License v2.0\n//\n// See LICENSE.txt for license information\n//\n// SPDX-License-Identifier: Apache-2.0\n//\n//===----------------------------------------------------------------------===//"

scripts/sanity.sh renamed to scripts/validate.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
##===----------------------------------------------------------------------===##
1515

1616
SWIFT_VERSION=5.3
17+
SWIFT_FORMAT_VERSION=0.48.17
1718

1819
set -eu
1920
here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@@ -23,8 +24,8 @@ which swiftformat > /dev/null 2>&1 || (echo "swiftformat not installed. You can
2324
printf "=> Checking format... "
2425
FIRST_OUT="$(git status --porcelain)"
2526
if [[ -n "${CI-""}" ]]; then
26-
printf "(using v$(mint run NickLockwood/SwiftFormat@0.48.17 --version)) "
27-
mint run NickLockwood/SwiftFormat@0.48.17 . > /dev/null 2>&1
27+
printf "(using v$(mint run NickLockwood/SwiftFormat@$SWIFT_FORMAT_VERSION --version)) "
28+
mint run NickLockwood/SwiftFormat@$SWIFT_FORMAT_VERSION . > /dev/null 2>&1
2829
else
2930
printf "(using v$(swiftformat --version)) "
3031
swiftformat . > /dev/null 2>&1

0 commit comments

Comments
 (0)