Skip to content

Commit

Permalink
test: remove gh action timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
PiTrem committed Sep 26, 2022
1 parent a6e2533 commit 67d363f
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/testrb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
matrix:
pg_role: [chemotion_test]
pg_database: [chemotion_test]
container:
container:
image: complat/complat-ubuntu-runner:development-5.c44d0c2d4
env:
HOME: /home/gitlab-runner
Expand All @@ -25,11 +25,11 @@ jobs:
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: git clone + postgres
working-directory: /home/gitlab-runner
Expand All @@ -38,7 +38,7 @@ jobs:
POSTGRES_PORT: 5432
run: |
sudo git clone --branch $(echo $GITHUB_REF | cut -d'/' -f 3) --depth 1 https://github.com/$(echo $GITHUB_REPOSITORY).git
sudo bash ./chemotion_ELN/.github/workflows/config.sh
echo "POSTGRES"
Expand All @@ -62,12 +62,7 @@ jobs:
/bin/bash -l -c "RAILS_ENV=test bundle exec bin/rails db:seed > /dev/null"
- name: rb test
uses: nick-invision/retry@v2
with:
timeout_minutes: 10
max_attempts: 5
retry_on: error
command: |
cd /home/gitlab-runner/chemotion_ELN
/bin/bash -l -c "RAILS_ENV=test bundle exec rspec --exclude-pattern spec/{features}/**/*_spec.rb"
working-directory: /home/gitlab-runner/chemotion_ELN
run: |
/bin/bash -l -c "RAILS_ENV=test bundle exec rspec --exclude-pattern spec/{features}/**/*_spec.rb"

0 comments on commit 67d363f

Please sign in to comment.