Skip to content

Commit

Permalink
Automate tests with Github Actions (#97)
Browse files Browse the repository at this point in the history
* Configure Github Actions
* Add status badge to README
* Express Ruby versions as string to work around ruby/setup-ruby#447
* Add Gemfile.lock to repository
  • Loading branch information
gael-ian committed Feb 26, 2023
1 parent e49368c commit b260835
Show file tree
Hide file tree
Showing 4 changed files with 215 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/unit-tests.yml
@@ -0,0 +1,23 @@
name: Unit tests
on:
push:
branches: [main, next]
pull_request:
branches: [main, next]
jobs:
# Ruby unit tests
rspec:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ["2.7", "3.0", "3.1"]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rspec
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -4,7 +4,6 @@
# Bundler
/.bundle
/vendor/bundle
Gemfile.lock

# Rubygems
*.gem
Expand Down
190 changes: 190 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,190 @@
GIT
remote: https://github.com/hashicorp/vagrant.git
revision: 986a01734f008d62897bb66085381090e4fcabfc
tag: v2.3.4
specs:
vagrant (2.3.4)
bcrypt_pbkdf (~> 1.1)
childprocess (~> 4.1.0)
ed25519 (~> 1.3.0)
erubi
googleapis-common-protos-types (~> 1.3)
grpc
hashicorp-checkpoint (~> 0.1.5)
i18n (~> 1.8)
ipaddr (>= 1.2.4)
listen (~> 3.6)
log4r (~> 1.1.9, < 1.1.11)
mime-types (~> 3.3)
net-ftp (~> 0.1)
net-scp (~> 4.0)
net-sftp (~> 4.0)
net-ssh (~> 7.0)
rb-kqueue (~> 0.2.0)
rexml (~> 3.2)
rgl (~> 0.5.7)
rubyzip (~> 2.0)
vagrant_cloud (~> 3.0.5)
wdm (~> 0.1.0)
winrm (>= 2.3.4, < 3.0)
winrm-elevated (>= 1.2.1, < 2.0)
winrm-fs (>= 1.3.4, < 2.0)

PATH
remote: .
specs:
vagrant-bindfs (1.1.9)

GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
bcrypt_pbkdf (1.1.0)
builder (3.2.4)
childprocess (4.1.0)
concurrent-ruby (1.2.2)
date (3.3.3)
diff-lcs (1.5.0)
ed25519 (1.3.0)
erubi (1.12.0)
excon (0.99.0)
ffi (1.15.5)
google-protobuf (3.22.0)
googleapis-common-protos-types (1.5.0)
google-protobuf (~> 3.14)
grpc (1.52.0)
google-protobuf (~> 3.21)
googleapis-common-protos-types (~> 1.0)
gssapi (1.3.1)
ffi (>= 1.0.1)
gyoku (1.4.0)
builder (>= 2.1.2)
rexml (~> 3.0)
hashicorp-checkpoint (0.1.5)
httpclient (2.8.3)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
ipaddr (1.2.5)
json (2.6.3)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
little-plugger (1.1.4)
log4r (1.1.10)
logging (2.3.1)
little-plugger (~> 1.1)
multi_json (~> 1.14)
mime-types (3.4.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2023.0218.1)
multi_json (1.15.0)
net-ftp (0.2.0)
net-protocol
time
net-protocol (0.2.1)
timeout
net-scp (4.0.0)
net-ssh (>= 2.6.5, < 8.0.0)
net-sftp (4.0.0)
net-ssh (>= 5.0.0, < 8.0.0)
net-ssh (7.0.1)
nori (2.6.0)
pairing_heap (3.0.0)
parallel (1.22.1)
parser (3.2.1.0)
ast (~> 2.4.1)
rainbow (3.1.1)
rake (13.0.6)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rb-kqueue (0.2.8)
ffi (>= 0.5.0)
regexp_parser (2.7.0)
rexml (3.2.5)
rgl (0.5.10)
pairing_heap (>= 0.3.0)
rexml (~> 3.2, >= 3.2.4)
stream (~> 0.5.3)
rspec (3.12.0)
rspec-core (~> 3.12.0)
rspec-expectations (~> 3.12.0)
rspec-mocks (~> 3.12.0)
rspec-core (3.12.1)
rspec-support (~> 3.12.0)
rspec-expectations (3.12.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-mocks (3.12.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.12.0)
rspec-support (3.12.0)
rubocop (1.46.0)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.2.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.26.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.26.0)
parser (>= 3.2.1.0)
rubocop-capybara (2.17.1)
rubocop (~> 1.41)
rubocop-performance (1.16.0)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (2.18.1)
rubocop (~> 1.33)
rubocop-capybara (~> 2.17)
ruby-progressbar (1.11.0)
rubyntlm (0.6.3)
rubyzip (2.3.2)
stream (0.5.5)
time (0.2.1)
date
timeout (0.3.2)
unicode-display_width (2.4.2)
vagrant_cloud (3.0.5)
excon (~> 0.73)
log4r (~> 1.1.10)
rexml (~> 3.2.5)
wdm (0.1.1)
winrm (2.3.6)
builder (>= 2.1.2)
erubi (~> 1.8)
gssapi (~> 1.2)
gyoku (~> 1.0)
httpclient (~> 2.2, >= 2.2.0.2)
logging (>= 1.6.1, < 3.0)
nori (~> 2.0)
rubyntlm (~> 0.6.0, >= 0.6.3)
winrm-elevated (1.2.3)
erubi (~> 1.8)
winrm (~> 2.0)
winrm-fs (~> 1.0)
winrm-fs (1.3.5)
erubi (~> 1.8)
logging (>= 1.6.1, < 3.0)
rubyzip (~> 2.0)
winrm (~> 2.0)

PLATFORMS
ruby

DEPENDENCIES
rake
rspec (~> 3.12.0)
rubocop
rubocop-performance
rubocop-rake
rubocop-rspec
vagrant!
vagrant-bindfs!

BUNDLED WITH
2.3.19
2 changes: 2 additions & 0 deletions README.md
@@ -1,5 +1,7 @@
# vagrant-bindfs

[![Unit tests](https://github.com/gael-ian/vagrant-bindfs/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/gael-ian/vagrant-bindfs/actions/workflows/unit-tests.yml)

A Vagrant plugin to automate [bindfs](http://bindfs.org/) mounts in the VM. This allow you to change owner, group and permissions on files and, for example, work around NFS share permissions issues.

## Some Background: Why `vagrant-bindfs`
Expand Down

0 comments on commit b260835

Please sign in to comment.