added tests
This commit is contained in:
parent
f13335a315
commit
f887a9a315
2
.github/lint-scripts.sh
vendored
2
.github/lint-scripts.sh
vendored
@ -14,5 +14,3 @@ while read -r FILE; do
|
|||||||
echo lint "${FILE}"
|
echo lint "${FILE}"
|
||||||
shellcheck -x "${FILE}"
|
shellcheck -x "${FILE}"
|
||||||
done < "${TMP_FILE}"
|
done < "${TMP_FILE}"
|
||||||
|
|
||||||
rm "${TMP_FILE}"
|
|
||||||
|
24
.github/tests.sh
vendored
Executable file
24
.github/tests.sh
vendored
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# run zammad tests
|
||||||
|
#
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
|
||||||
|
until (curl -I --silent --fail localhost | grep -iq zammad_session); do
|
||||||
|
echo "wait for zammad to be ready..."
|
||||||
|
sleep 15
|
||||||
|
done
|
||||||
|
|
||||||
|
docker exec -i zammad-docker-compose_zammad-railsserver_1 bash <<'EOF'
|
||||||
|
set -o errexit
|
||||||
|
bundle exec rubocop
|
||||||
|
# rake db:migrate
|
||||||
|
# rake db:seed
|
||||||
|
bundle exec rspec -t ~type:system -t ~searchindex
|
||||||
|
bundle exec rake db:environment:set RAILS_ENV=test
|
||||||
|
rake db:reset
|
||||||
|
rake test:units
|
||||||
|
ruby -I test/ test/integration/object_manager_test.rb
|
||||||
|
ruby -I test/ test/integration/package_test.rb
|
||||||
|
EOF
|
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -25,3 +25,5 @@ jobs:
|
|||||||
run: docker-compose pull
|
run: docker-compose pull
|
||||||
- name: install
|
- name: install
|
||||||
run: docker-compose up -d
|
run: docker-compose up -d
|
||||||
|
- name: tests
|
||||||
|
run: .github/tests.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user