Skip to content

Commit

Permalink
fix: running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
askonev committed Nov 29, 2023
1 parent a2964bd commit a89259e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,26 @@ jobs:
run: rubocop
- name: Check that code 100% documented
run: yardoc . | grep -q '100.00% documented'
test:
base_dockerfile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Running test inside doc-builder-testing
run: |
docker build -t doc-builder-testing .
docker run doc-builder-testing
build:
build_ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
dockerfiles:
- 'Dockerfile'
- 'dockerfiles/debian-archive/Dockerfile'
- 'dockerfiles/centos-7/Dockerfile'
- 'dockerfiles/debian-develop/Dockerfile'
- 'dockerfiles/debian-next-release/Dockerfile'
steps:
- uses: actions/checkout@v2
- name: Dockerfile ${{ matrix.dockerfiles }} Test
run: docker build -f ${{ matrix.dockerfiles }} .
run: |
docker build -f ${{ matrix.dockerfiles }} .
docker run ${{ matrix.dockerfiles }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ RUN mv /tmp/onlyoffice.gpg /usr/share/keyrings/onlyoffice.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/onlyoffice.gpg] http://download.onlyoffice.com/repo/debian squeeze main" >> /etc/apt/sources.list.d/onlyoffice.list && \
apt-get -y update && \
apt-get -y install onlyoffice-documentbuilder
CMD /bin/bash -c "onlyoffice-documentbuilder; \
CMD /bin/bash -c "onlyoffice-documentbuilder -v; \
cd /doc-builder-testing; \
rake"
2 changes: 1 addition & 1 deletion dockerfiles/centos-7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ RUN bundle config set without 'development' && \
bundle install
RUN yum -y install https://download.onlyoffice.com/repo/centos/main/noarch/onlyoffice-repo.noarch.rpm
RUN yum -y install onlyoffice-documentbuilder
CMD /bin/bash -c "onlyoffice-documentbuilder; \
CMD /bin/bash -c "onlyoffice-documentbuilder -v; \
cd /doc-builder-testing; \
bundle exec parallel_rspec spec"
2 changes: 1 addition & 1 deletion dockerfiles/debian-archive/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ RUN chmod +x /usr/bin/documentbuilder
WORKDIR /doc-builder-testing
RUN bundle config set without 'development' && \
bundle install
CMD /bin/bash -c "documentbuilder; \
CMD /bin/bash -c "documentbuilder -v; \
bundle exec parallel_rspec spec"
2 changes: 1 addition & 1 deletion dockerfiles/debian-develop/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ RUN echo "deb [trusted=yes] https://s3.eu-west-1.amazonaws.com/repo-doc-onlyoffi
apt-get -y install onlyoffice-documentbuilder
RUN cat /etc/apt/sources.list.d/onlyoffice-dev.list

CMD /bin/bash -c "onlyoffice-documentbuilder; \
CMD /bin/bash -c "onlyoffice-documentbuilder -v; \
cd /doc-builder-testing; \
rake rspec_critical"
2 changes: 1 addition & 1 deletion dockerfiles/debian-next-release/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ RUN echo "deb [trusted=yes] https://s3.eu-west-1.amazonaws.com/repo-doc-onlyoffi
apt-get -y install onlyoffice-documentbuilder=$VERSION-*
RUN cat /etc/apt/sources.list.d/onlyoffice-dev.list

CMD /bin/bash -c "onlyoffice-documentbuilder; \
CMD /bin/bash -c "onlyoffice-documentbuilder -v; \
cd /doc-builder-testing; \
rake rspec_critical"

0 comments on commit a89259e

Please sign in to comment.