Skip to content

Commit

Permalink
run all commands
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnolte committed Oct 1, 2024
1 parent ce53647 commit c73c897
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions codefresh.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
version: '1.0'
stages:
- prepare
- build
- list-contents
- test

steps:
Expand All @@ -13,27 +11,14 @@ steps:
revision: '${{CF_REVISION}}'
stage: prepare

build_docker_image:
title: Building Docker image
type: build
image_name: '${{CF_REPO_NAME}}'
working_directory: '${{CF_REPO_NAME}}'
tag: '${{CF_BRANCH_TAG_NORMALIZED}}'
dockerfile: Dockerfile
stage: build
build_arguments:
- REPO_NAME=${{CF_REPO_NAME}}

list_contents:
title: Listing contents
image: '${{build_docker_image}}'
stage: list-contents
commands:
- 'ls -la'

run_tests:
title: Running tests
stage: test
image: '${{build_docker_image}}'
image: 'node:20'
commands:
- 'ls -la'
- 'npm ci'
- 'npm run build'
- 'cd e2e/typescript'
- 'npm install'
- '../../bin/cli.js testing setup-ci-context --api-key 12345'

0 comments on commit c73c897

Please sign in to comment.