Skip to content

Commit e3d9347

Browse files
authored
test: 🧪 improve integration test workflow order (#1700)
* test: improve integration test workflow * Update integration.yml * Update version.yml * test: tidy up integration tests
1 parent a86ae7a commit e3d9347

File tree

2 files changed

+38
-13
lines changed

2 files changed

+38
-13
lines changed

.github/workflows/integration.yml

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
name: Integration Tests 🧪
22
on:
3+
workflow_call:
34
workflow_dispatch:
4-
inputs:
5-
branch:
6-
description: 'Specifies the branch which the integration tests should run on.'
7-
required: true
8-
default: 'releases/v4'
95
schedule:
106
- cron: 30 15 * * 0-6
11-
push:
12-
tags-ignore:
13-
- '*.*'
14-
branches:
15-
- releases/v4
167

178
jobs:
18-
# Deploys cross repo with an access token.
199
integration-cross-repo-push:
2010
container: node:16.13
2111
runs-on: ubuntu-latest
@@ -40,7 +30,6 @@ jobs:
4030
clean: true
4131
silent: true
4232

43-
# Deploys using checkout@v1 with an ACCESS_TOKEN.
4433
integration-checkout-v1:
4534
needs: integration-cross-repo-push
4635
runs-on: ubuntu-latest
@@ -62,8 +51,8 @@ jobs:
6251
uses: dawidd6/[email protected]
6352
with:
6453
github_token: ${{ secrets.GITHUB_TOKEN }}
54+
branches: gh-pages
6555

66-
# Deploys using checkout@v2 with a GITHUB_TOKEN.
6756
integration-checkout-v2:
6857
needs: integration-checkout-v1
6958
runs-on: ubuntu-latest
@@ -86,6 +75,36 @@ jobs:
8675
uses: dawidd6/[email protected]
8776
with:
8877
github_token: ${{ secrets.GITHUB_TOKEN }}
78+
branches: gh-pages
79+
80+
integration-root-folder:
81+
needs: integration-checkout-v1
82+
runs-on: ubuntu-latest
83+
steps:
84+
- name: Checkout
85+
uses: actions/checkout@v4
86+
with:
87+
persist-credentials: false
88+
89+
- name: Echo
90+
working-directory: integration
91+
run: |
92+
echo "Here"
93+
94+
- name: Build and Deploy
95+
uses: JamesIves/github-pages-deploy-action@v4
96+
with:
97+
folder: .
98+
target-folder: cat/montezuma5
99+
silent: true
100+
git-config-name: Montezuma
101+
git-config-email: [email protected]
102+
103+
- name: Cleanup Generated Branch
104+
uses: dawidd6/[email protected]
105+
with:
106+
github_token: ${{ secrets.GITHUB_TOKEN }}
107+
branches: gh-pages
89108

90109
# Deploys using a container that requires you to install rsync.
91110
integration-container:

.github/workflows/version.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ jobs:
1212
steps:
1313
- uses: nowactions/[email protected]
1414

15+
call-integration-workflow:
16+
name: Verify Major Tag 🚀
17+
needs: update-majorver
18+
uses: ./.github/workflows/integration.yml
19+
1520
update-registries:
21+
needs: call-integration-workflow
1622
name: Publish to Registries 📦
1723
runs-on: ubuntu-latest
1824
steps:

0 commit comments

Comments
 (0)