Skip to content

Commit e341901

Browse files
authored
Merge pull request #46 from DannyBen/ci/github-actions
Switch to github actions
2 parents af6b8a7 + 222039b commit e341901

35 files changed

+183
-147
lines changed

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test
2+
on:
3+
pull_request:
4+
push: { branches: master }
5+
6+
jobs:
7+
test:
8+
name: Ruby ${{ matrix.ruby }}
9+
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix: { ruby: ['2.4', '2.5', '2.6', '2.7'] }
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Cache gem dependencies
20+
uses: actions/cache@v1
21+
with:
22+
path: vendor/bundle
23+
key: ${{ runner.os }}-${{ matrix.ruby }}-bundle
24+
25+
- name: Setup Ruby
26+
uses: actions/setup-ruby@v1
27+
with: { ruby-version: '${{ matrix.ruby }}' }
28+
29+
- name: Bundle install
30+
run: |
31+
gem install bundler
32+
bundle config path vendor/bundle
33+
bundle install --jobs 4 --retry 3
34+
35+
- name: Run tests
36+
run: bundle exec rspec
37+
38+
- name: Run shellcheck tests
39+
run: bundle exec run shellcheck
File renamed without changes.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Bashly - Bash CLI Framework and Generator
77
Create beautiful bash scripts from simple YAML configuration
88

99
[![Gem Version](https://badge.fury.io/rb/bashly.svg)](https://badge.fury.io/rb/bashly)
10-
[![Build Status](https://travis-ci.com/DannyBen/bashly.svg?branch=master)](https://travis-ci.com/DannyBen/bashly)
10+
[![Build Status](https://github.com/DannyBen/bashly/workflows/Test/badge.svg)](https://github.com/DannyBen/bashly/actions?query=workflow%3ATest)
1111
[![Maintainability](https://api.codeclimate.com/v1/badges/8cf89047e50ca601e431/maintainability)](https://codeclimate.com/github/DannyBen/bashly/maintainability)
1212

1313
---

lib/bashly/polyfills/hash.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ def self.empty?(path_name)
77
exist?(path_name) && (entries(path_name) - ['.', '..']).empty?
88
end
99
end
10-
end
10+
end
11+
12+
# :nocov:

spec/approvals/cli/add/colors

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
created spec/tmp/src/lib/colors.sh
2-

1+
created spec/tmp/src/lib/colors.sh

spec/approvals/cli/add/config

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
created spec/tmp/src/lib/config.sh
2-

1+
created spec/tmp/src/lib/config.sh

spec/approvals/cli/add/lib

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
created spec/tmp/src/lib/sample_function.sh
2-

1+
created spec/tmp/src/lib/sample_function.sh

spec/approvals/cli/add/strings

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
created spec/tmp/src/bashly-strings.yml
2-

1+
created spec/tmp/src/bashly-strings.yml
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
skipped spec/tmp/src/bashly-strings.yml (exists)
1+
skipped spec/tmp/src/bashly-strings.yml (exists)

spec/approvals/cli/add/yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
created spec/tmp/src/lib/yaml.sh
2-

1+
created spec/tmp/src/lib/yaml.sh

0 commit comments

Comments
 (0)