Skip to content

Commit

Permalink
add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-kiselenko committed Jul 18, 2024
1 parent 286e24b commit 0b10c06
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "CI"

on: [push, pull_request]
jobs:
build:
name: build
runs-on: ubuntu-latest
steps:

- name: Setup BATS
uses: mig4/setup-bats@v1
with:
bats-version: 1.2.1

- name: Check out code
uses: actions/checkout@v1

- name: Test
run: bats ./test/test.bats
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion test/bats
Submodule bats deleted from 190c7c
6 changes: 6 additions & 0 deletions test/test.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bats

@test "can generate config" {
run ./bin/smolgit config
[ "${lines[0]}" = "log:" ]
}

0 comments on commit 0b10c06

Please sign in to comment.