diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index 85afec2..0edc9a2 100644 --- a/.gitea/workflows/pr.yml +++ b/.gitea/workflows/pr.yml @@ -11,18 +11,13 @@ jobs: container: image: docker.notsosm.art/euchre-camp-ci-runner:latest options: --user root + env: + NODE_PATH: /workspace/node_modules steps: - name: Checkout code uses: actions/checkout@v4 - - name: Link node_modules from container - run: | - # Create symlink to pre-installed node_modules in container - # Container has node_modules at /workspace/node_modules - # Gitea Actions checks out at /workspace/david/euchre_camp - ln -sf /workspace/node_modules ./node_modules - - name: Run unit tests run: npm run test:run @@ -36,16 +31,12 @@ jobs: DATABASE_PROVIDER: sqlite DATABASE_URL: file:./prisma/ci.db BETTER_AUTH_SECRET: test-secret-key-for-ci-only + NODE_PATH: /workspace/node_modules steps: - name: Checkout code uses: actions/checkout@v4 - - name: Link node_modules from container - run: | - # Create symlink to pre-installed node_modules in container - ln -sf /workspace/node_modules ./node_modules - - name: Setup SQLite database run: | # Create SQLite database file diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index ed4ab16..19f6be1 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -13,15 +13,12 @@ jobs: options: --user root # Skip if this is an auto-generated version bump commit (handled by release workflow) if: "!contains(github.event.head_commit.message, 'chore: bump version')" + env: + NODE_PATH: /workspace/node_modules steps: - name: Checkout code uses: actions/checkout@v4 - - name: Link node_modules from container - run: | - # Create symlink to pre-installed node_modules in container - ln -sf /workspace/node_modules ./node_modules - - name: Run unit tests run: npm run test:run