Skip to content

Add tests on Fedora #222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
30 changes: 30 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,33 @@ jobs:
bundle install
- name: Tests
run: rake test

Fedora:
name: fedora
runs-on: ubuntu-latest
steps:
- name: Setup Podman
run: |
sudo apt update
sudo apt-get -y install podman
podman pull fedora:rawhide
- name: Get source
uses: actions/checkout@v3
with:
path: 'numo-narray'
- name: Create container and run tests
run: |
{
echo 'FROM fedora:rawhide'
echo 'RUN dnf -y update'
echo 'RUN dnf -y install gcc-c++ git ruby-devel'
echo 'RUN dnf clean all'
echo 'COPY numo-narray numo-narray'
echo 'WORKDIR /numo-narray'
echo 'RUN gem install --no-document bundler'
echo 'RUN gem build numo-narray.gemspec'
echo 'RUN gem install numo-narray-*.gem'
echo 'RUN bundle install'
echo 'RUN bundle exec rake test'
} > podmanfile
podman build --tag fedora_test -f ./podmanfile