mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
Integration Test Improvements (#116)
* Integration Test Improvements * Formatting * Update build.yml * Change * Update build.yml * Update integration.yml * More changes * More more changes
This commit is contained in:
parent
f7d75b98a9
commit
43ed8d1518
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@ -1,13 +1,20 @@
|
||||
name: unit-tests
|
||||
on: [pull_request, push]
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- dev
|
||||
- releases/v3
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
jobs:
|
||||
unit-test:
|
||||
unit-tests:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
|
||||
- name: Install and Test
|
||||
run: |
|
||||
npm install
|
||||
npm run-script test
|
||||
- name: Install and Test
|
||||
run: |
|
||||
npm install
|
||||
npm run-script test
|
||||
|
61
.github/workflows/integration.yml
vendored
61
.github/workflows/integration.yml
vendored
@ -2,17 +2,58 @@ name: integration-tests
|
||||
on:
|
||||
schedule:
|
||||
- cron: 10 15 * * 0-6
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
|
||||
pull_request:
|
||||
branches:
|
||||
- releases/v3
|
||||
|
||||
jobs:
|
||||
integration-test:
|
||||
integration-checkout-v1:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
- 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
|
||||
- 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:
|
||||
needs: checkout-v1
|
||||
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:
|
||||
needs: [checkout-v1, 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: gh-pages
|
||||
FOLDER: integration
|
||||
BASE_BRANCH: dev
|
||||
CLEAN: true
|
||||
|
Loading…
Reference in New Issue
Block a user