|
|
|
#
|
|
|
|
# Author: Hari Sekhon
|
|
|
|
# Date: Tue Feb 4 09:53:28 2020 +0000
|
|
|
|
#
|
|
|
|
# vim:ts=2:sts=2:sw=2:et
|
|
|
|
#
|
|
|
|
# https://github.com/harisekhon/bash-tools
|
|
|
|
#
|
|
|
|
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback
|
|
|
|
#
|
|
|
|
# https://www.linkedin.com/in/harisekhon
|
|
|
|
#
|
|
|
|
|
|
|
|
name: CI Mac
|
|
|
|
|
|
|
|
#env:
|
|
|
|
# DEBUG: 1
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
schedule:
|
|
|
|
# * is a special character in YAML so you have to quote this string
|
|
|
|
- cron: '0 7 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
#name: build
|
|
|
|
timeout-minutes: 60
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ~/Library/Caches/pip
|
|
|
|
key: ${{ runner.os }}-pip-bash-tools # -${{ hashFiles('**/requirements.txt') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-pip-bash-tools
|
|
|
|
- uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ~/.cpanm
|
|
|
|
key: ${{ runner.os }}-cpanm-bash-tools-${{ hashFiles('**/cpan-requirements.txt') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-cpanm-bash-tools
|
|
|
|
- name: brew update
|
|
|
|
run: which brew && brew update || echo
|
|
|
|
- name: init
|
|
|
|
run: make init
|
|
|
|
- name: build
|
|
|
|
run: make ci
|
|
|
|
- name: test
|
|
|
|
run: make test
|