2
0
mirror of https://github.com/kazhala/dotbare synced 2024-11-08 07:10:24 +00:00
dotbare/.github/workflows/ci.yml

43 lines
1.1 KiB
YAML
Raw Normal View History

2020-05-17 01:54:07 +00:00
name: CI
on: [push, pull_request]
defaults:
run:
shell: bash
working-directory: .
jobs:
ubuntu:
2020-05-15 04:02:41 +00:00
runs-on: ${{ matrix.os }}
strategy:
matrix:
2020-05-15 04:02:41 +00:00
os: [ubuntu-16.04, ubuntu-18.04]
node-version: [10]
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
- 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