You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DevOps-Bash-tools/.github/workflows/ubuntu_github.yaml

52 lines
1.1 KiB
YAML

5 years ago
#
# Author: Hari Sekhon
# Date: Tue Feb 4 09:53:28 2020 +0000
#
5 years ago
# vim:ts=2:sts=2:sw=2:et
5 years ago
#
# 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
#
3 years ago
---
name: GitHub Actions Ubuntu
5 years ago
#env:
# DEBUG: 1
5 years ago
on: # [push]
push:
branches:
- master
schedule:
3 years ago
- cron: '0 7 * * *'
5 years ago
jobs:
build:
5 years ago
#name: build
timeout-minutes: 60
runs-on: ubuntu-latest
5 years ago
steps:
5 years ago
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.cache/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: init
run: make init
- name: build
run: make ci
- name: test
run: make test