mas/.github/workflows/build-test.yml
2021-04-28 23:10:15 -07:00

33 lines
857 B
YAML

#
# .github/workflows/build-test.yml
#
# https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
name: Build & Test
on: [push]
jobs:
build-test:
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
runs-on: macOS-latest
steps:
# https://github.com/actions/checkout#usage
- uses: actions/checkout@master
with:
# Fetch tags for script/version
fetch-depth: 0
# https://docs.github.com/en/actions/reference/authentication-in-a-workflow
token: ${{ secrets.GITHUB_TOKEN }}
- name: Bootstrap
run: script/bootstrap
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsenv
- name: Build
run: script/build
- name: Test
run: script/test