Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

on:
pull_request:
branches: ["master"]
paths-ignore:
- 'README.md'
- LICENSE

jobs:
test:
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: tests/Gemfile
BUNDLE_GEMFILE.lock: tests/Gemfile.lock

steps:
- uses: actions/checkout@v3

- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true

- name: test
run: cat /etc/os-release

- name: run bashcov
run: bundle exec bashcov ./setuper
7 changes: 7 additions & 0 deletions .simplecov
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SimpleCov.start do
minimum_coverage 90

add_filter "debug.sh"
add_filter "/test/"
add_filter "/.git/"
end
7 changes: 7 additions & 0 deletions tests/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# frozen_string_literal: true

source "https://rubygems.org"

# gem "rails"

gem "bashcov", "~> 3.1"
22 changes: 22 additions & 0 deletions tests/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
GEM
remote: https://rubygems.org/
specs:
bashcov (3.1.2)
simplecov (~> 0.22.0)
docile (1.4.0)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
bashcov (~> 3.1)

BUNDLED WITH
2.5.11