Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: ['3.0', '3.1', '3.2', '3.3']
Comment thread
tpowell-progress marked this conversation as resolved.
Outdated

steps:
- uses: actions/checkout@v4

- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: false

- name: Install dependencies
run: |
gem install bundler
gem install test-unit

- name: Build extension
run: |
ruby extconf.rb
make

- name: Run tests
run: |
sudo ruby test/basic_test.rb
2 changes: 1 addition & 1 deletion MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LICENSE
MANIFEST
README
README.euc
ruby-shadow.gemspec
chef-ruby-shadow.gemspec
pwd/shadow.c
pwd/depend
shadow/shadow.c
Expand Down