mirror of
https://github.com/stefanzweifel/git-auto-commit-action.git
synced 2025-08-25 00:52:08 +08:00
Add very basic test suite with bats and shellmock (#100)
* Add bats * Write commits tests * Add Workflow * Add .gitignore * Update Test Suite * Disable test * Disable failing test for now
This commit is contained in:
30
.github/workflows/tests.yml
vendored
Normal file
30
.github/workflows/tests.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
name: tests
|
||||
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Shell Mock
|
||||
run: |
|
||||
git clone https://github.com/capitalone/bash_shell_mock
|
||||
cd bash_shell_mock
|
||||
sudo ./install.sh /usr/local
|
||||
|
||||
- name: Where is shellmock?
|
||||
run: which shellmock
|
||||
|
||||
- name: GitHub Detection
|
||||
run: |
|
||||
pwd
|
||||
|
||||
- name: Install BATS
|
||||
run: yarn install
|
||||
|
||||
- name: Run Tests
|
||||
run: yarn test
|
||||
|
Reference in New Issue
Block a user