2021-11-09 12:15:33 +00:00
|
|
|
name: Integration Test
|
2021-11-04 12:31:49 +00:00
|
|
|
|
|
|
|
on:
|
2021-11-09 12:15:33 +00:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
2021-11-26 14:22:17 +00:00
|
|
|
- .github/workflows/test.yml
|
|
|
|
- .github/scripts/get-latest-tags.sh
|
2021-11-09 12:15:33 +00:00
|
|
|
- build/**
|
|
|
|
- installation/**
|
|
|
|
- tests/**
|
|
|
|
- .dockerignore
|
|
|
|
- docker-bake.hcl
|
2021-11-26 14:22:17 +00:00
|
|
|
- env-example
|
2021-11-09 12:15:33 +00:00
|
|
|
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
paths:
|
2021-11-26 14:22:17 +00:00
|
|
|
- .github/workflows/test.yml
|
|
|
|
- .github/scripts/get-latest-tags.sh
|
2021-11-09 12:15:33 +00:00
|
|
|
- build/**
|
|
|
|
- installation/**
|
|
|
|
- tests/**
|
|
|
|
- .dockerignore
|
|
|
|
- docker-bake.hcl
|
2021-11-26 14:22:17 +00:00
|
|
|
- env-example
|
2021-11-09 12:15:33 +00:00
|
|
|
|
|
|
|
workflow_dispatch:
|
|
|
|
|
2021-11-04 12:31:49 +00:00
|
|
|
schedule:
|
|
|
|
# Every day at 01:00 am
|
|
|
|
# Develop images are built at 12:00 pm, we want to use them
|
2021-11-09 12:15:33 +00:00
|
|
|
# Also, we don't build new images on this event
|
2021-11-04 12:31:49 +00:00
|
|
|
- cron: 0 1 * * *
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2021-11-09 12:15:33 +00:00
|
|
|
- name: Get latest versions
|
|
|
|
if: github.event_name != 'schedule'
|
|
|
|
run: ./.github/scripts/get-latest-tags.sh
|
|
|
|
env:
|
|
|
|
VERSION: 13
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
if: github.event_name != 'schedule'
|
|
|
|
uses: docker/bake-action@v1.6.0
|
|
|
|
with:
|
|
|
|
files: docker-bake.hcl
|
|
|
|
targets: frappe-develop,frappe-stable
|
|
|
|
load: true
|
|
|
|
env:
|
|
|
|
GIT_TAG: ${{ env.FRAPPE_VERSION }}
|
|
|
|
|
2021-11-04 12:31:49 +00:00
|
|
|
- name: Test
|
|
|
|
run: ./tests/integration-test.sh
|