@@ -13,20 +13,17 @@ inputs:
13
13
runs :
14
14
using : " composite"
15
15
steps :
16
- - name : Go into self-hosted directory
17
- shell : bash
18
- run : cd ${{ github.action_path }}
19
-
20
16
- name : Configure to use the test image
21
17
if : inputs.project_name && inputs.image_url
22
18
shell : bash
23
19
run : |
24
20
image_var=$(echo ${{ inputs.project_name }}_IMAGE | tr '[:lower:]' '[:upper:]')
25
- echo "${image_var}=${{ inputs.image_url }}" >> $GITHUB_ENV
21
+ echo "${image_var}=${{ inputs.image_url }}" >> ${{ github.action_path }}/.env
26
22
27
23
- name : Setup dev environment
28
24
shell : bash
29
25
run : |
26
+ cd ${{ github.action_path }}
30
27
pip install -r requirements-dev.txt
31
28
echo "PY_COLORS=1" >> "$GITHUB_ENV"
32
29
### pytest-sentry configuration ###
64
61
# Set permissions for docker volumes so we can cache and restore
65
62
sudo chmod o+x /var/lib/docker
66
63
sudo chmod -R o+rwx /var/lib/docker/volumes
67
- source .env
64
+ source ${{ github.action_path }}/ .env
68
65
SENTRY_IMAGE_SHA=$(docker buildx imagetools inspect $SENTRY_IMAGE --format "{{println .Manifest.Digest}}")
69
66
echo "SENTRY_IMAGE_SHA=$SENTRY_IMAGE_SHA" >> $GITHUB_OUTPUT
70
67
SNUBA_IMAGE_SHA=$(docker buildx imagetools inspect $SNUBA_IMAGE --format "{{println .Manifest.Digest}}")
88
85
SKIP_DB_MIGRATIONS : ${{ steps.restore_cache.outputs.cache-hit == 'true' && '1' || '' }}
89
86
shell : bash
90
87
run : |
88
+ cd ${{ github.action_path }}
91
89
# This is for the cache restore on Kafka to work in older releases
92
90
docker run --rm -v "sentry-kafka:/data" busybox chown -R 1000:1000 /data
93
91
# Add some customizations to test that path
@@ -132,18 +130,21 @@ runs:
132
130
/var/lib/docker/volumes/sentry-clickhouse \
133
131
/var/lib/docker/volumes/sentry-kafka \
134
132
"$RUNNER_TEMP/volumes/"
133
+ cd ${{ github.action_path }}
135
134
docker compose up --wait
136
135
TEST_CUSTOMIZATIONS=enabled pytest -x --cov --junitxml=junit.xml _integration-test/
137
136
138
137
- name : Upload coverage to Codecov
139
138
uses : codecov/codecov-action@v5
140
139
if : inputs.CODECOV_TOKEN
141
140
with :
141
+ directory : ${{ github.action_path }}
142
142
token : ${{ inputs.CODECOV_TOKEN }}
143
143
slug : getsentry/self-hosted
144
144
145
145
- name : Upload test results to Codecov
146
146
if : inputs.CODECOV_TOKEN && !cancelled()
147
147
uses : codecov/test-results-action@v1
148
148
with :
149
+ directory : ${{ github.action_path }}
149
150
token : ${{ inputs.CODECOV_TOKEN }}
0 commit comments