Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 46 additions & 34 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,52 @@
name: test
on:
push:
branches:
- main
pull_request:
push:
branches:
- main
pull_request:

permissions:
contents: read
contents: read

jobs:
check-update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v5

- 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 committing the PR."

check-build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- env:
DOLI_INSTALL_AUTO: 0
run: |
# Regenerate all the image files
./update.sh
# Try to build the image inimages/develop
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
check-update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v5

- 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 committing the PR."

check-script:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Run sh-checker
uses: luizm/[email protected]
with:
sh_checker_exclude: "examples"

check-build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- env:
DOLI_INSTALL_AUTO: 0
run: |
# Regenerate all the image files
./update.sh
# Try to build the image inimages/develop
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
331 changes: 174 additions & 157 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ services:
DOLI_ADMIN_LOGIN: admintest
DOLI_ADMIN_PASSWORD: admintest
DOLI_URL_ROOT: http://0.0.0.0:81
DOLI_INSTANCE_UNIQUE_ID: myinstanceuniqueid
DOLI_REQUIRE_INSTANCE_UNIQUE_ID: 1
DOLI_CRON: 1
DOLI_CRON_KEY: mycronsecurekey
DOLI_CRON_USER: admintest
Expand Down
Loading
Loading