mirror of
https://github.com/mas-cli/mas
synced 2024-11-26 21:40:19 +00:00
33c696c75a
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
56 lines
1.6 KiB
YAML
56 lines
1.6 KiB
YAML
#
|
|
# .github/workflows/build-test.yml
|
|
#
|
|
# https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
|
|
|
|
name: Build, Test, and Lint
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-test:
|
|
|
|
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}
|
|
|
|
name: Build, Test, and Lint
|
|
|
|
# GitHub provided runners (in case we need to switch back)
|
|
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
|
|
# runs-on: macos-latest
|
|
|
|
# https://docs.github.com/en/actions/hosting-your-own-runners/using-self-hosted-runners-in-a-workflow
|
|
# https://github.com/mas-cli/mas/settings/actions/runners
|
|
runs-on: [self-hosted, macOS]
|
|
|
|
steps:
|
|
# https://github.com/actions/checkout#usage
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
# A fetch-depth of 0 includes all history and tags for script/version
|
|
fetch-depth: 0
|
|
|
|
- name: Bootstrap
|
|
run: script/bootstrap
|
|
|
|
- name: Build
|
|
run: script/build
|
|
|
|
- name: Test
|
|
run: script/test
|
|
|
|
- name: Lint
|
|
run: script/lint
|