Skip to content

Commit 5c1dfd6

Browse files
author
pavel evstigneev
committed
Run tests with GitHub-actions
1 parent 7e9afe9 commit 5c1dfd6

File tree

8 files changed

+53
-185
lines changed

8 files changed

+53
-185
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest, macos-latest, windows-latest]
11+
ruby: [2.6, 2.7, '3.0', 3.1]
12+
13+
runs-on: ${{ matrix.os }}
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: ruby/setup-ruby@v1
18+
with:
19+
ruby-version: ${{ matrix.ruby }}
20+
21+
- run: bundle config set --local without 'benchmarks'
22+
- run: bundle install
23+
- run: make
24+
25+
- run: rake test
26+
- run: rake examples
27+
- run: gem build fast_excel.gemspec

.travis.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

Gemfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source 'https://rubygems.org'
22

33
gem 'ffi'
4-
gem 'ffi_gen', require: false
4+
# gem 'ffi_gen', require: false
55

66
gem 'rake'
77

@@ -10,9 +10,11 @@ gem 'roo', '2.8.3', git: 'https://github.com/roo-rb/roo.git', tag: 'v2.8.3'
1010
gem 'minitest'
1111
gem 'minitest-reporters'
1212

13-
# For benchmakrs
14-
gem 'axlsx', git: 'https://github.com/randym/axlsx.git'
15-
gem 'write_xlsx'
16-
gem 'xlsxtream'
17-
gem 'benchmark-ips'
18-
gem 'process_memory', git: 'https://github.com/paxa/process_memory', platforms: :ruby
13+
14+
group :benchmarks do
15+
gem 'axlsx', git: 'https://github.com/randym/axlsx.git'
16+
gem 'write_xlsx'
17+
gem 'xlsxtream'
18+
gem 'benchmark-ips'
19+
gem 'process_memory', git: 'https://github.com/paxa/process_memory', platforms: :ruby
20+
end

Gemfile.lock

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,46 +27,41 @@ GEM
2727
remote: https://rubygems.org/
2828
specs:
2929
ansi (1.5.0)
30-
benchmark-ips (2.8.4)
30+
benchmark-ips (2.10.0)
3131
builder (3.2.4)
32-
ffi (1.14.2)
33-
ffi_gen (1.2.0)
34-
ffi (~> 1.0)
32+
ffi (1.15.5)
3533
htmlentities (4.3.4)
36-
mimemagic (0.3.5)
37-
minitest (5.14.3)
38-
minitest-reporters (1.4.3)
34+
mimemagic (0.4.3)
35+
nokogiri (~> 1)
36+
rake
37+
minitest (5.15.0)
38+
minitest-reporters (1.5.0)
3939
ansi
4040
builder
4141
minitest (>= 5.0)
4242
ruby-progressbar
43-
nokogiri (1.11.1-x86_64-darwin)
44-
racc (~> 1.4)
45-
nokogiri (1.11.1-x86_64-linux)
43+
nokogiri (1.13.3-x86_64-darwin)
4644
racc (~> 1.4)
47-
racc (1.5.2)
48-
rake (13.0.3)
45+
racc (1.6.0)
46+
rake (13.0.6)
4947
ruby-progressbar (1.11.0)
5048
rubyzip (1.3.0)
51-
write_xlsx (1.04.0)
49+
write_xlsx (1.09.2)
5250
rubyzip (>= 1.0.0)
5351
zip-zip
5452
xlsxtream (2.4.0)
5553
zip_tricks (>= 4.5, < 6)
5654
zip-zip (0.3)
5755
rubyzip (>= 1.0.0)
58-
zip_tricks (5.5.0)
56+
zip_tricks (5.6.0)
5957

6058
PLATFORMS
61-
ruby
62-
x86_64-darwin-19
63-
x86_64-linux
59+
x86_64-darwin-20
6460

6561
DEPENDENCIES
6662
axlsx!
6763
benchmark-ips
6864
ffi
69-
ffi_gen
7065
minitest
7166
minitest-reporters
7267
process_memory!
@@ -76,4 +71,4 @@ DEPENDENCIES
7671
xlsxtream
7772

7873
BUNDLED WITH
79-
2.2.2
74+
2.3.8

appveyor.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/example_filters.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
worksheet = workbook.add_worksheet("Payments Report")
1414

15-
p worksheet[:filter_on]
16-
FastExcel.print_ffi_obj(worksheet)
15+
# p worksheet[:filter_on]
16+
# FastExcel.print_ffi_obj(worksheet)
1717

1818
bold = workbook.bold_format
1919
worksheet.set_column(0, 0, FastExcel::DEF_COL_WIDTH, bold)

lib/fast_excel/binding.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module Libxlsxwriter
77

88
LIB_FILENAME = if RUBY_PLATFORM =~ /darwin/
99
"libxlsxwriter.dylib"
10-
elsif ['x64-mingw32', 'i386-mingw32'].include? RUBY_PLATFORM
10+
elsif ['x64-mingw32', 'i386-mingw32', 'x64-mingw-ucrt', 'mswin'].include?(RUBY_PLATFORM)
1111
"libxlsxwriter.dll"
1212
else
1313
"libxlsxwriter.so"

test/text_width_test.rb

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)