mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +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
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
#
|
|
# .github/workflows/pr-checks.yml
|
|
#
|
|
# https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
|
|
---
|
|
name: pr-checks
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
push:
|
|
branches: [main]
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
build-test:
|
|
runs-on: macos-15
|
|
defaults:
|
|
run:
|
|
# Prefixes all `run` commands with the following command to force them to run outside Rosetta.
|
|
# https://github.com/actions/runner/issues/805#issuecomment-942784948
|
|
# https://github.com/rolpdog/cffi-mirror/blob/release-1.15/.github/workflows/ci.yaml#L81-L141
|
|
# https://github.com/actions/virtual-environments/issues/2187#issuecomment-790507204
|
|
shell: arch -arm64 bash --noprofile --norc -eo pipefail {0}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
# A fetch-depth of 0 includes all history and tags for script/version
|
|
fetch-depth: 0
|
|
- name: Bootstrap
|
|
run: script/bootstrap -f
|
|
- name: Build
|
|
run: script/build
|
|
- name: Test
|
|
run: script/test
|