Skip to content

Commit dc3d6bd

Browse files
authored
Merge pull request #222 from bkmgit/fedora
Add tests on Fedora
2 parents 7e42919 + ea78120 commit dc3d6bd

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,33 @@ jobs:
4848
bundle install
4949
- name: Tests
5050
run: rake test
51+
52+
Fedora:
53+
name: fedora
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Setup Podman
57+
run: |
58+
sudo apt update
59+
sudo apt-get -y install podman
60+
podman pull fedora:rawhide
61+
- name: Get source
62+
uses: actions/checkout@v3
63+
with:
64+
path: 'numo-narray'
65+
- name: Create container and run tests
66+
run: |
67+
{
68+
echo 'FROM fedora:rawhide'
69+
echo 'RUN dnf -y update'
70+
echo 'RUN dnf -y install gcc-c++ git ruby-devel'
71+
echo 'RUN dnf clean all'
72+
echo 'COPY numo-narray numo-narray'
73+
echo 'WORKDIR /numo-narray'
74+
echo 'RUN gem install --no-document bundler'
75+
echo 'RUN gem build numo-narray.gemspec'
76+
echo 'RUN gem install numo-narray-*.gem'
77+
echo 'RUN bundle install'
78+
echo 'RUN bundle exec rake test'
79+
} > podmanfile
80+
podman build --tag fedora_test -f ./podmanfile

0 commit comments

Comments
 (0)