-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(ci): more e2e tests #63
Changes from all commits
ca7d425
36efd3f
7598b7d
865fd1c
418f0d9
c7a7533
a0ff65f
27a1b0f
022154d
6ebd9d7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: test - archive-channel | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- archive-channel/** | ||
- .github/workflows/test-archive-channel.yml | ||
|
||
concurrency: | ||
group: test-archive-channel-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
env: | ||
WORDPRESS_CHART_VERSION: 22.2.8 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "npm" | ||
cache-dependency-path: | | ||
**/package-lock.json | ||
|
||
- name: build | ||
run: make package-archive-channel | ||
|
||
- name: create-release | ||
id: create-release | ||
uses: replicatedhq/compatibility-actions/create-release@v1 | ||
with: | ||
api-token: ${{ secrets.REPLICATED_API_TOKEN }} | ||
app-slug: replicated-actions-ci # from the Replicated QA team | ||
yaml-dir: ./test/kots-install/yaml | ||
promote-channel: ci-test-archive-channel-${{ github.sha }} | ||
|
||
- name: test archive-channel | ||
id: archive-channel | ||
uses: ./archive-channel | ||
with: | ||
api-token: ${{ secrets.REPLICATED_API_TOKEN }} | ||
app-slug: replicated-actions-ci # from the Replicated QA team | ||
channel-slug: ${{ steps.create-release.outputs.channel-slug }} | ||
|
||
- name: archive-channel | ||
if: always() | ||
uses: replicatedhq/compatibility-actions/archive-channel@v1 | ||
continue-on-error: true # It could be that the channel is already removed | ||
with: | ||
api-token: ${{ secrets.REPLICATED_API_TOKEN }} | ||
app-slug: replicated-actions-ci # from the Replicated QA team | ||
channel-slug: ${{ steps.create-release.outputs.channel-slug }} | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: test - archive-customer | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- archive-customer/** | ||
- .github/workflows/test-archive-customer.yml | ||
|
||
concurrency: | ||
group: test-archive-customer-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
env: | ||
WORDPRESS_CHART_VERSION: 22.2.8 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "npm" | ||
cache-dependency-path: | | ||
**/package-lock.json | ||
|
||
- name: build | ||
run: make package-archive-customer | ||
|
||
- name: create-customer | ||
id: create-customer | ||
uses: replicatedhq/replicated-actions/create-customer@v1 | ||
with: | ||
api-token: ${{ secrets.REPLICATED_API_TOKEN }} | ||
app-slug: replicated-actions-ci # from the Replicated QA team | ||
customer-name: "CI Test Customer - ${{ github.ref_name }} - ${{ github.sha }}" | ||
customer-email: ${{ github.sha }}@example.com | ||
license-type: test | ||
|
||
- name: test archive-customer | ||
id: archive-customer | ||
uses: ./archive-customer | ||
with: | ||
api-token: ${{ secrets.REPLICATED_API_TOKEN }} | ||
customer-id: ${{ steps.create-customer.outputs.customer-id }} | ||
|
||
- name: archive-customer | ||
if: always() | ||
uses: replicatedhq/compatibility-actions/archive-customer@v1 | ||
continue-on-error: true # It could be that the customer is already removed | ||
with: | ||
api-token: ${{ secrets.REPLICATED_API_TOKEN }} | ||
customer-id: ${{ steps.create-customer.outputs.customer-id }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: test - create-object-store | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- create-object-store/** | ||
- .github/workflows/test-create-object-store.yml | ||
|
||
concurrency: | ||
group: test-create-object-store-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "npm" | ||
cache-dependency-path: | | ||
**/package-lock.json | ||
|
||
- name: build | ||
run: make package-create-object-store | ||
|
||
- name: create-cluster | ||
id: create-cluster | ||
uses: replicatedhq/compatibility-actions/create-cluster@v1 | ||
with: | ||
api-token: ${{ secrets.REPLICATED_API_TOKEN }} | ||
kubernetes-distribution: eks | ||
timeout-minutes: 5 | ||
|
||
- name: test create-object-store | ||
id: create-object-store | ||
uses: ./create-object-store | ||
with: | ||
api-token: ${{ secrets.REPLICATED_API_TOKEN }} | ||
cluster-id: ${{ steps.create-cluster.outputs.cluster-id }} | ||
bucket-prefix: ci-test-object-store | ||
timeout-minutes: 5 | ||
|
||
- name: remove cluster | ||
if: always() | ||
uses: replicatedhq/compatibility-actions/remove-cluster@v1 | ||
continue-on-error: true # It could be that the cluster is already removed | ||
with: | ||
api-token: ${{ secrets.REPLICATED_API_TOKEN }} | ||
cluster-id: ${{ steps.create-cluster.outputs.cluster-id }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: test - create-postgres | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- create-postgres/** | ||
- .github/workflows/test-create-postgres.yml | ||
|
||
concurrency: | ||
group: test-create-postgres-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "npm" | ||
cache-dependency-path: | | ||
**/package-lock.json | ||
|
||
- name: build | ||
run: make package-create-postgres | ||
|
||
- name: create-cluster | ||
id: create-cluster | ||
uses: replicatedhq/compatibility-actions/create-cluster@v1 | ||
with: | ||
api-token: ${{ secrets.REPLICATED_API_TOKEN }} | ||
kubernetes-distribution: eks | ||
timeout-minutes: 5 | ||
|
||
- name: test create-postgres | ||
id: create-postgres | ||
uses: ./create-postgres | ||
with: | ||
api-token: ${{ secrets.REPLICATED_API_TOKEN }} | ||
cluster-id: ${{ steps.create-cluster.outputs.cluster-id }} | ||
version: "16.3" | ||
timeout-minutes: 10 | ||
|
||
- name: remove cluster | ||
if: always() | ||
uses: replicatedhq/compatibility-actions/remove-cluster@v1 | ||
continue-on-error: true # It could be that the cluster is already removed | ||
with: | ||
api-token: ${{ secrets.REPLICATED_API_TOKEN }} | ||
cluster-id: ${{ steps.create-cluster.outputs.cluster-id }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: test - expose-port | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- expose-port/** | ||
- .github/workflows/test-expose-port.yml | ||
|
||
concurrency: | ||
group: test-expose-port-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: "npm" | ||
cache-dependency-path: | | ||
**/package-lock.json | ||
|
||
- name: build | ||
run: make package-expose-port | ||
|
||
- name: create-cluster | ||
id: create-cluster | ||
uses: replicatedhq/compatibility-actions/create-cluster@v1 | ||
with: | ||
api-token: ${{ secrets.REPLICATED_API_TOKEN }} | ||
kubernetes-distribution: kind | ||
timeout-minutes: 5 | ||
|
||
- name: test expose-port | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Idea: before exposing a port, run a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We test this in cmx e2e tests |
||
id: expose-port | ||
uses: ./expose-port | ||
with: | ||
api-token: ${{ secrets.REPLICATED_API_TOKEN }} | ||
cluster-id: ${{ steps.create-cluster.outputs.cluster-id }} | ||
port: "30000" | ||
protocols: http,https | ||
wildcard: "true" | ||
timeout-minutes: 5 | ||
|
||
- name: remove cluster | ||
if: always() | ||
uses: replicatedhq/compatibility-actions/remove-cluster@v1 | ||
continue-on-error: true # It could be that the cluster is already removed | ||
with: | ||
api-token: ${{ secrets.REPLICATED_API_TOKEN }} | ||
cluster-id: ${{ steps.create-cluster.outputs.cluster-id }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If
archive-channel
is broken, this will result in orphaned channels.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is from the stable branch replicatedhq/compatibility-actions/archive-channel@v1 to avoid orphaned channels. see on line 44 is the actual test