2019-11-19 23:11:21 +08:00
|
|
|
name: integration-tests
|
2019-08-26 23:36:17 +08:00
|
|
|
on:
|
2019-09-06 10:34:59 +08:00
|
|
|
schedule:
|
2019-11-22 23:04:37 +08:00
|
|
|
- cron: 10 15 * * 0-6
|
2020-01-12 08:13:04 +08:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- dev
|
|
|
|
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- releases/v3
|
|
|
|
|
2019-08-26 23:36:17 +08:00
|
|
|
jobs:
|
2020-01-12 08:13:04 +08:00
|
|
|
integration-checkout-v1:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Build and Deploy
|
|
|
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
|
|
|
with:
|
|
|
|
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
|
|
BRANCH: gh-pages
|
|
|
|
FOLDER: integration
|
|
|
|
BASE_BRANCH: dev
|
|
|
|
TARGET_FOLDER: montezuma
|
|
|
|
|
|
|
|
integration-checkout-v2:
|
2020-01-12 08:13:51 +08:00
|
|
|
needs: integration-checkout-v1
|
2020-01-12 08:13:04 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Build and Deploy
|
|
|
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
|
|
|
with:
|
|
|
|
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
|
|
BRANCH: gh-pages
|
|
|
|
FOLDER: integration
|
|
|
|
BASE_BRANCH: dev
|
|
|
|
TARGET_FOLDER: montezuma2
|
|
|
|
|
|
|
|
integration-clean:
|
2020-01-12 08:13:51 +08:00
|
|
|
needs: [integration-checkout-v1, integration-checkout-v2]
|
2019-08-26 23:36:17 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-01-12 08:13:04 +08:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
2019-08-26 23:36:17 +08:00
|
|
|
|
2020-01-12 08:13:04 +08:00
|
|
|
- name: Build and Deploy
|
|
|
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
|
|
|
with:
|
|
|
|
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
|
|
BRANCH: gh-pages
|
|
|
|
FOLDER: integration
|
|
|
|
BASE_BRANCH: dev
|
|
|
|
CLEAN: true
|
2020-01-12 08:21:50 +08:00
|
|
|
|
|
|
|
integration-branch-creation:
|
|
|
|
needs: [integration-checkout-v1, integration-checkout-v2]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Build and Deploy
|
|
|
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
|
|
|
with:
|
|
|
|
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
|
|
|
BRANCH: integration-test-delete-test
|
|
|
|
FOLDER: integration
|
|
|
|
BASE_BRANCH: dev
|
|
|
|
CLEAN: true
|
|
|
|
|
|
|
|
- name: Cleanup Generated Branch
|
2020-01-12 08:22:25 +08:00
|
|
|
run: |
|
|
|
|
git push origin --delete integration-test-delete-test
|