mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-27 09:15:10 +00:00
ci(Test): Build and run on push and pr
This commit is contained in:
parent
64630b3d98
commit
5ec27ce3a5
1 changed files with 25 additions and 1 deletions
26
.github/workflows/test.yml
vendored
26
.github/workflows/test.yml
vendored
|
|
@ -1,11 +1,19 @@
|
||||||
name: Test
|
name: Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
schedule:
|
schedule:
|
||||||
# Every day at 01:00 am
|
# Every day at 01:00 am
|
||||||
# Develop images are built at 12:00 pm, we want to use them
|
# Develop images are built at 12:00 pm, we want to use them
|
||||||
- cron: 0 1 * * *
|
- cron: 0 1 * * *
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
|
|
@ -14,5 +22,21 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Get latest versions
|
||||||
|
# if: not schedule
|
||||||
|
run: ./.github/scripts/get-latest-tags.sh
|
||||||
|
env:
|
||||||
|
VERSION: 13
|
||||||
|
|
||||||
|
- name: Build develop images
|
||||||
|
# if: not schedule
|
||||||
|
uses: docker/bake-action@v1.6.0
|
||||||
|
with:
|
||||||
|
files: docker-bake.hcl
|
||||||
|
targets: frappe-develop,frappe-stable
|
||||||
|
load: true
|
||||||
|
env:
|
||||||
|
GIT_TAG: 13
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: ./tests/integration-test.sh
|
run: ./tests/integration-test.sh
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue