Merge pull request #32 from solution-libre/FlorentPoinsaut-patch-1 #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |