2
0
mirror of https://github.com/kazhala/dotbare synced 2024-11-02 09:40:27 +00:00
dotbare/.github/workflows/ci.yml
2020-05-17 11:54:07 +10:00

43 lines
1.1 KiB
YAML

name: CI
on: [push, pull_request]
defaults:
run:
shell: bash
working-directory: .
jobs:
ubuntu:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-16.04, ubuntu-18.04]
node-version: [10]
steps:
- uses: actions/checkout@v2
- run: sudo apt-get install shellcheck -y
- run: ./shellcheck.sh
- 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
- run: rm -rf "$HOME"/.cfg
- run: ./dotbare finit -y
- run: bats tests
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: brew install shellcheck
- run: ./shellcheck.sh
- run: brew install bats
- run: ./dotbare finit -u https://github.com/kazhala/dotfiles.git
- run: bats tests
- run: rm -rf "$HOME"/.cfg
- run: ./dotbare finit -y
- run: bats tests