mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-09-13 14:29:09 +00:00
ad basic ci testing
This commit is contained in:
parent
28e2ccf7e4
commit
54f4b4ca23
3 changed files with 118 additions and 0 deletions
34
.github/workflows/.go.yml
vendored
Normal file
34
.github/workflows/.go.yml
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: Go
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.17
|
||||
- name: "Setup Passbolt"
|
||||
run: |
|
||||
git clone https://github.com/passbolt/passbolt_docker.git ../passbolt_docker
|
||||
cd ../passbolt_docker
|
||||
docker-compose up -d
|
||||
docker ps -a
|
||||
- name: "Test"
|
||||
run: |
|
||||
docker exec passbolt_docker_passbolt_1 sh -c '/usr/bin/wait-for.sh -t 30 localhost:443'
|
||||
output=$(docker exec passbolt_docker_passbolt_1 sh -c 'su -m -c "/usr/share/php/passbolt/bin/cake \
|
||||
passbolt register_user \
|
||||
-u your@email.com \
|
||||
-f yourname \
|
||||
-l surname \
|
||||
-r admin" -s /bin/sh www-data')
|
||||
export REG_URL=$(echo ${output##* your mailbox or here: } | tr -d '\n')
|
||||
echo "Register with $REG_URL"
|
||||
go test -v ./...
|
Loading…
Add table
Add a link
Reference in a new issue