Skip to content

Commit 476e09a

Browse files
committed
fix(CI): Make query.log paths relative so they work on GitHub and Garn runners
Signed-off-by: Joas Schilling <[email protected]>
1 parent 5a79917 commit 476e09a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/performance.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
mkdir data
7777
./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin
7878
./occ app:enable --force ${{ env.APP_NAME }}
79-
./occ config:system:set query_log_file --value '/home/runner/work/notifications/notifications/query.log'
79+
./occ config:system:set query_log_file --value "$PWD/query.log"
8080
8181
# - name: Check PHPUnit script is defined
8282
# id: check_phpunit
@@ -110,7 +110,7 @@ jobs:
110110
run: composer run test:integration
111111

112112
- name: Print query.log
113-
run: cat /home/runner/work/notifications/notifications/query.log
113+
run: cat query.log
114114

115115
- name: Query count
116116
uses: actions/github-script@v5
@@ -129,12 +129,12 @@ jobs:
129129
myError += data.toString()
130130
}
131131
}
132-
await exec.exec(`/bin/bash -c "cat /home/runner/work/notifications/notifications/query.log | wc -l"`, [], options)
132+
await exec.exec(`/bin/bash -c "cat query.log | wc -l"`, [], options)
133133
msg = myOutput
134134
const queryCount = parseInt(myOutput, 10)
135135
136136
myOutput = ''
137-
await exec.exec('cat', ['/home/runner/work/notifications/notifications/apps/notifications/tests/Integration/base-query-count.txt'], options)
137+
await exec.exec('cat', ['apps/notifications/tests/Integration/base-query-count.txt'], options)
138138
const baseCount = parseInt(myOutput, 10)
139139
140140
const absoluteIncrease = queryCount - baseCount
@@ -150,7 +150,7 @@ jobs:
150150
})
151151
}
152152
if (queryCount < 100) {
153-
const comment = `🐈 Performance messuring seems broken. Failed to get query count.`
153+
const comment = `🐈 Performance measuring seems broken. Failed to get query count.`
154154
github.rest.issues.createComment({
155155
issue_number: context.issue.number,
156156
owner: context.repo.owner,

0 commit comments

Comments
 (0)