Skip to content

Commit

Permalink
ci: add e2e tests to ci (#1222)
Browse files Browse the repository at this point in the history
* feat: add e2e tests to ci

* change ci image for e2e

* add yarn --immutable

* new urls
  • Loading branch information
alvicsam committed Feb 16, 2023
1 parent d0bf7cb commit 14b05f8
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ variables:
HELM_REPO: "helm/"
DOCKERFILE_DIRECTORY: "./"
CI_IMAGE: "quay.io/buildah/stable:v1.27"
NODE_IMAGE: "node:18"

default:
retry:
Expand All @@ -36,6 +37,7 @@ default:
fi
stages:
- test
- build
- deploy-staging
- deploy-production
Expand All @@ -53,14 +55,10 @@ stages:

.test-refs: &test-refs
rules:
- if: $CI_PIPELINE_SOURCE == "pipeline"
when: never
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs

.test-refs-manual: &test-refs-manual
rules:
- if: $CI_PIPELINE_SOURCE == "pipeline"
when: never
- if: $CI_COMMIT_REF_NAME =~ /^[0-9]+$/ # PRs
when: manual

Expand Down Expand Up @@ -110,6 +108,35 @@ stages:
tags:
- kubernetes-parity-build

.e2e-template: &e2e-template
stage: test
<<: *kubernetes-env
variables:
CI_IMAGE: $NODE_IMAGE
CHAIN_NAME: ""
CHAIN_URL: "wss://${CHAIN_NAME}-testing-rpc.parity-build.parity.io"
script:
- yarn --immutable
- yarn test:latest-e2e-tests --chain $CHAIN_NAME --local $CHAIN_URL

e2e-westend:
<<: *e2e-template
variables:
CI_IMAGE: $NODE_IMAGE
CHAIN_NAME: "westend"

e2e-kusama:
<<: *e2e-template
variables:
CI_IMAGE: $NODE_IMAGE
CHAIN_NAME: "kusama"

e2e-polkadot:
<<: *e2e-template
variables:
CI_IMAGE: $NODE_IMAGE
CHAIN_NAME: "polkadot"

build:
<<: *dockerize
<<: *publish-refs
Expand Down

0 comments on commit 14b05f8

Please sign in to comment.