Skip to content

Commit 904df2c

Browse files
committed
fix(ci): remove build dependency of tests job
1 parent 612cc44 commit 904df2c

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ jobs:
4545

4646
tests:
4747
runs-on: ubuntu-latest
48-
needs: build-docker-image
49-
if: needs.build-docker-image.outputs.build_ran == 'true' ||
50-
needs.build-docker-image.outputs.build_ran == ''
48+
if: |
49+
(github.event_name == 'push' || github.event_name == 'pull_request') &&
50+
(needs.build-docker-image.outputs.build_ran == 'true' ||
51+
needs.build-docker-image.outputs.build_ran == '')
5152
steps:
5253
- name: Check out repository
5354
uses: actions/checkout@v4

nix_test_env/docker_entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
set -euo pipefail
33

44
export __HM_SESS_VARS_SOURCED="${__HM_SESS_VARS_SOURCED:-0}"
5+
56
source /root/.nix-profile/etc/profile.d/hm-session-vars.sh
67

78
if [[ $# -eq 0 ]]; then

0 commit comments

Comments
 (0)