2021-03-28 19:10:49 +00:00
|
|
|
#
|
|
|
|
# .github/workflows/build-test.yml
|
|
|
|
#
|
|
|
|
# https://docs.github.com/en/actions/reference/environment-variables#default-environment-variables
|
|
|
|
|
2021-03-28 18:01:23 +00:00
|
|
|
name: Build & Test
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-test:
|
|
|
|
|
2021-03-28 19:18:24 +00:00
|
|
|
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
|
2021-03-28 18:01:23 +00:00
|
|
|
runs-on: macOS-latest
|
|
|
|
steps:
|
2021-03-28 19:18:24 +00:00
|
|
|
|
2021-03-28 19:10:49 +00:00
|
|
|
# https://github.com/actions/checkout#usage
|
2021-03-28 18:01:23 +00:00
|
|
|
- uses: actions/checkout@master
|
2021-03-28 19:10:49 +00:00
|
|
|
with:
|
|
|
|
# https://docs.github.com/en/actions/reference/authentication-in-a-workflow
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
2021-03-28 19:18:24 +00:00
|
|
|
|
2021-03-28 18:01:23 +00:00
|
|
|
- name: Bootstrap
|
|
|
|
run: script/bootstrap
|
2021-03-28 19:10:49 +00:00
|
|
|
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsenv
|
|
|
|
env:
|
|
|
|
# Carthage looks for GITHUB_ACCESS_TOKEN
|
|
|
|
# https://github.com/Carthage/Carthage/blob/master/Source/CarthageKit/GitHub.swift#L118
|
|
|
|
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-03-28 19:18:24 +00:00
|
|
|
|
2021-03-28 18:01:23 +00:00
|
|
|
- name: Build
|
|
|
|
run: script/build
|
2021-03-28 19:18:24 +00:00
|
|
|
|
2021-03-28 18:01:23 +00:00
|
|
|
- name: Test
|
|
|
|
run: script/test
|