add postgresql container to run tests in
All checks were successful
test-backend / test-x86_64 (push) Successful in 22s
All checks were successful
test-backend / test-x86_64 (push) Successful in 22s
This commit is contained in:
29
.gitea/workflows/test-backend.yaml
Normal file
29
.gitea/workflows/test-backend.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
name: test-backend
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
test-x86_64:
|
||||
runs-on: alpine
|
||||
steps:
|
||||
- name: Install tools for testing
|
||||
shell: sh
|
||||
run: |
|
||||
apk --update add git docker docker-compose postgresql
|
||||
- name: Pull postgres docker image
|
||||
shell: sh
|
||||
run: docker pull postgres
|
||||
- name: Pull custom docker image
|
||||
shell: sh
|
||||
run: docker pull 10.5.1.5:5000/sdlc/x86_64
|
||||
- name: Pull repository
|
||||
shell: sh
|
||||
run: |
|
||||
git init
|
||||
git remote add gitea http://10.1.1.1:3000/hasslesstech/sdlc-project
|
||||
git fetch gitea
|
||||
git checkout gitea/master
|
||||
- name: Deploy testing environment
|
||||
shell: sh
|
||||
run: docker-compose -f backend/docker-compose-x86_64.yaml up -d
|
||||
Reference in New Issue
Block a user