Skip to content

Commit

Permalink
Merge pull request #34 from leoarnold/leoarnold/ci
Browse files Browse the repository at this point in the history
Add continuous integration through GitHub Actions
  • Loading branch information
dspinhirne authored Nov 6, 2024
2 parents 8c94bed + dbab3cc commit d2b18b4
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
pull_request:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
ruby:
- 2.7
- 3.1
- 3.2
- 3.3
experimental:
- false
include:
- ruby: ruby-head
experimental: true

steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
#Personal task list
tasks.md

/Gemfile.lock
10 changes: 10 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true

source "https://rubygems.org"

gemspec

group :development do
gem "rake", "~> 13"
gem "test-unit", "~> 3"
end
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

require 'rake/testtask'

task default: %i[test]

Rake::TestTask.new(:test) do |t|
t.test_files = FileList['test/**/*_test.rb']
end
File renamed without changes.
2 changes: 1 addition & 1 deletion test/run_all.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative "examples.rb"
require_relative "examples_test.rb"
require_relative "netaddr_test.rb"
require_relative "eui48_test.rb"
require_relative "eui64_test.rb"
Expand Down

0 comments on commit d2b18b4

Please sign in to comment.