2020-05-17 01:54:07 +00:00
|
|
|
name: CI
|
2020-05-15 03:57:52 +00:00
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: bash
|
|
|
|
working-directory: .
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ubuntu:
|
2020-05-15 04:02:41 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
2020-05-15 03:57:52 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-05-15 04:02:41 +00:00
|
|
|
os: [ubuntu-16.04, ubuntu-18.04]
|
|
|
|
node-version: [10]
|
2020-05-15 03:57:52 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-05-15 08:53:03 +00:00
|
|
|
- run: sudo apt-get install shellcheck -y
|
2020-05-22 04:52:04 +00:00
|
|
|
- run: ./tests/shellcheck.sh
|
2020-05-15 03:57:52 +00:00
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- run: npm install -g bats
|
|
|
|
- run: ./dotbare finit -u https://github.com/kazhala/dotfiles.git
|
|
|
|
- run: bats tests
|
2020-05-15 04:12:16 +00:00
|
|
|
- run: rm -rf "$HOME"/.cfg
|
2020-05-15 08:06:32 +00:00
|
|
|
- run: ./dotbare finit -y
|
2020-05-15 04:12:16 +00:00
|
|
|
- run: bats tests
|
2020-05-15 04:08:19 +00:00
|
|
|
macos:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-05-15 08:43:38 +00:00
|
|
|
- run: brew install shellcheck
|
2020-05-22 04:52:04 +00:00
|
|
|
- run: ./tests/shellcheck.sh
|
2020-05-15 04:08:19 +00:00
|
|
|
- run: brew install bats
|
2020-05-15 04:12:16 +00:00
|
|
|
- run: ./dotbare finit -u https://github.com/kazhala/dotfiles.git
|
|
|
|
- run: bats tests
|
|
|
|
- run: rm -rf "$HOME"/.cfg
|
2020-05-15 08:06:32 +00:00
|
|
|
- run: ./dotbare finit -y
|
2020-05-15 04:08:19 +00:00
|
|
|
- run: bats tests
|