mirror of
https://github.com/internetee/epp_proxy.git
synced 2025-08-21 14:49:33 +02:00
Tests pipeline init
This commit is contained in:
parent
4d510f9020
commit
20c10f3466
1 changed files with 24 additions and 0 deletions
24
.github/workflows/run-automatest-tests.yml
vendored
Normal file
24
.github/workflows/run-automatest-tests.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
name: Proxy automated tests
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.0.0
|
||||||
|
|
||||||
|
- name: Build image for tests
|
||||||
|
run: docker build -t proxy-tester -f Dockerfile.test .
|
||||||
|
|
||||||
|
- name: Start the container
|
||||||
|
run: docker run -d --name tester proxy-tester
|
||||||
|
|
||||||
|
- name: Install rebar dependencies
|
||||||
|
run: docker exec -i tester 'rebar3 as test get-deps'
|
||||||
|
|
||||||
|
- name: Integrated Ruby app setup
|
||||||
|
run: docker exec -i tester 'apps/epp_proxy/priv/test_backend_app && bundle install && bundle exec rackup'
|
||||||
|
|
||||||
|
- name: Compile for tests
|
||||||
|
run: docker exec -i tester 'rebar3 as test compile'
|
Loading…
Add table
Add a link
Reference in a new issue