Skip to content

Fix branch master to main #21

Fix branch master to main

Fix branch master to main #21

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
jobs:
check-update:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Test the update was run, files will differ if not
run: |
./update.sh
git diff --exit-code
- name: Display error message on failure
if: failure() # This condition ensures the step runs only if the previous step failed
run: echo "The diff after running the update.sh shows that the update.sh was not run before commiting the PR."
check-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- env:
DOLI_INSTALL_AUTO: 0
run: |
./update.sh
docker build -t dolibarr/dolibarr:develop images/develop
docker run -d -p 127.0.0.1:80:80 --name dolibarr dolibarr/dolibarr:develop
docker ps | grep -q dolibarr