diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..4bb5585 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,16 @@ +name: check + +on: + pull_request: + push: + branches: [main] + +jobs: + check: + runs-on: macos-latest + steps: + - uses: actions/checkout@v5 + - run: scripts/on-mac/bootstrap + - run: scripts/on-mac/lint + - run: scripts/on-mac/test + - run: scripts/on-mac/build diff --git a/scripts/on-mac/bootstrap b/scripts/on-mac/bootstrap index 1dca0fd..eb221f8 100755 --- a/scripts/on-mac/bootstrap +++ b/scripts/on-mac/bootstrap @@ -4,8 +4,8 @@ cd "$(dirname "$0")/../.." brew bundle --file=Brewfile --quiet -xcodebuild -version | head -1 -swift --version 2>&1 | head -1 +xcodebuild -version | sed -n 1p +swift --version 2>&1 | sed -n 1p echo "xcodegen $(xcodegen --version)" echo "swiftlint $(swiftlint version)" echo "swiftformat $(swiftformat --version)"