install npm dev dependencies

This commit is contained in:
Elio Bischof 2022-08-04 11:14:36 +02:00
parent 1618d62df0
commit bd467e8228
No known key found for this signature in database
GPG Key ID: 7B383FDE4DDBF1BD
4 changed files with 13 additions and 8 deletions

View File

@ -5,16 +5,17 @@ on:
# - cron: '*/15 * * * *' # - cron: '*/15 * * * *'
workflow_dispatch: workflow_dispatch:
env: env:
WORKING_DIR: ./ ZITADEL_IMAGE: ghcr.io/zitadel/zitadel:v2.0.1
jobs: jobs:
test: test:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- name: Checkout repository - name: Checkout Repository
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Build the docker-compose stack - name: Install NPM Modules
run: COMPOSE_DOCKER_CLI_BUILD=1 docker compose --verbose --file ${WORKING_DIR}/e2e/docker-compose-workdir.yaml --file ${WORKING_DIR}/docs/docs/guides/installation/run/docker-compose.yaml --file ${WORKING_DIR}/e2e/docker-compose-overwrite.yaml --env-file ${WORKING_DIR}/e2e/compose.env working-directory: ./console
run: npm ci --only=dev
- name: Test
run: ./e2e/docker-compose.sh run e2e

View File

@ -23,6 +23,9 @@ jobs:
with: with:
install-only: true install-only: true
version: v1.10.3 version: v1.10.3
- name: Install NPM Modules
working-directory: ./console
run: npm ci --only=dev
- name: Test - name: Test
run: ./e2e/install.sh run: ./e2e/install.sh
- name: Publish go coverage - name: Publish go coverage

View File

@ -1,6 +1,6 @@
services: services:
zitadel: zitadel:
image: 'zitadel:${BUILD_DATE}' image: '${ZITADEL_IMAGE}'
environment: environment:
# TODO: localhost? # TODO: localhost?
ZITADEL_EXTERNALDOMAIN: zitadel ZITADEL_EXTERNALDOMAIN: zitadel

View File

@ -45,7 +45,7 @@ BUILD_DATE="$(extract_metadata metadata.json '.date')"
BUILD_DATE="${BUILD_DATE%.*}" BUILD_DATE="${BUILD_DATE%.*}"
# Replace colons and plus signs # Replace colons and plus signs
export BUILD_DATE="${BUILD_DATE//:/_}" export BUILD_DATE="${BUILD_DATE//:/_}"
export ZITADEL_IMAGE="${ZITADEL_IMAGE:-zitadel:${BUILD_DATE}}"
if [ "$DO_BUILD" -eq "1" ]; then if [ "$DO_BUILD" -eq "1" ]; then
BUILD_PATH="$(dirname $(extract_metadata artifacts.json '.[0].path'))" BUILD_PATH="$(dirname $(extract_metadata artifacts.json '.[0].path'))"
@ -56,6 +56,7 @@ if [ "$DO_BUILD" -eq "1" ]; then
fi fi
if [ "$DO_DEPLOY" -eq "1" ]; then if [ "$DO_DEPLOY" -eq "1" ]; then
echo "Testing ZITADEL image $ZITADEL_IMAGE"
# run cockroach and zitadel # run cockroach and zitadel
./e2e/docker-compose.sh run e2e ./e2e/docker-compose.sh run e2e
fi fi