Skip to content

Commit

Permalink
ci: add top level bats tests to concourse
Browse files Browse the repository at this point in the history
  • Loading branch information
bodymindarts committed Nov 9, 2023
1 parent 4dc2a7a commit 8779294
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ groups:
jobs:
- integration-tests
- bats-tests
- legacy-bats-tests
- test-unit
- check-code
- audit
Expand Down Expand Up @@ -179,6 +180,42 @@ jobs:
#@ params["GOOGLE_CREDENTIALS"] = "((staging-gcp-creds.creds_json))"
#@ params["SSH_PRIVATE_KEY"] = "((staging-ssh.ssh_private_key))"
#@ params["SSH_PUB_KEY"] = "((staging-ssh.ssh_public_key))"
#@ params["CMD"] = "bats --setup-suite-file bats/ci_setup_suite.bash -t bats/core/**"
serial: true
plan:
- { put: docker-host, params: { acquire: true } }
- in_parallel:
- { get: repo, trigger: true }
- { get: pipeline-tasks }
- task: #@ container
attempts: 2
timeout: 18m
tags: ["galoy-staging"]
config:
platform: linux
image_resource: #@ rust_task_image_config()
inputs:
- name: pipeline-tasks
- name: docker-host
path: nix-host
- name: repo
path: #@ data.values.gh_repository + "-" + container
params: #@ params
run:
path: pipeline-tasks/ci/apps/tasks/run-on-nix-host.sh
ensure:
put: docker-host
params:
release: docker-host
on_failure: #@ slack_failure_notification()

- name: legacy-bats-tests
#@ container = "legacy-bats-tests"
#@ params = {}
#@ params["REPO_PATH"] = data.values.gh_repository + "-" + container
#@ params["GOOGLE_CREDENTIALS"] = "((staging-gcp-creds.creds_json))"
#@ params["SSH_PRIVATE_KEY"] = "((staging-ssh.ssh_private_key))"
#@ params["SSH_PUB_KEY"] = "((staging-ssh.ssh_public_key))"
#@ params["JEST_TIMEOUT"] = 90000
#@ params["PACKAGE_DIR"] = "core/api"
#@ params["CMD"] = "make bats-in-ci"
Expand Down Expand Up @@ -633,7 +670,7 @@ jobs:
- audit
- test-unit
- integration-tests
- bats-tests
- legacy-bats-tests
- build-debug-edge-image
- build-migrate-edge-image
- build-edge-image
Expand Down

0 comments on commit 8779294

Please sign in to comment.