-
Notifications
You must be signed in to change notification settings - Fork 12
35 lines (30 loc) · 1.02 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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