mirror of
https://github.com/kazhala/dotbare
synced 2024-11-17 21:25:32 +00:00
43 lines
1.1 KiB
YAML
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: ./tests/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: ./tests/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
|