diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index 14c98ec..9a2660d 100644 --- a/.gitea/workflows/pr.yml +++ b/.gitea/workflows/pr.yml @@ -8,17 +8,18 @@ on: jobs: unit-tests: runs-on: ubuntu-latest + container: + image: node:20-alpine + options: --user root steps: + - name: Install system dependencies + run: | + apk add --no-cache bash git + - name: Checkout code uses: actions/checkout@v4 - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - cache: 'npm' - - name: Install dependencies run: npm ci @@ -28,21 +29,22 @@ jobs: acceptance-tests: runs-on: ubuntu-latest needs: unit-tests + container: + image: node:20-alpine + options: --user root env: DATABASE_PROVIDER: sqlite DATABASE_URL: file:./prisma/ci.db BETTER_AUTH_SECRET: test-secret-key-for-ci-only steps: + - name: Install system dependencies + run: | + apk add --no-cache bash git + - name: Checkout code uses: actions/checkout@v4 - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - cache: 'npm' - - name: Install dependencies run: npm ci diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 4b9b4ea..bcf53e3 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -8,19 +8,20 @@ on: jobs: unit-tests: runs-on: ubuntu-latest + container: + image: node:20-alpine + 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')" steps: + - name: Install system dependencies + run: | + apk add --no-cache bash git + - name: Checkout code uses: actions/checkout@v4 - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - cache: 'npm' - - name: Install dependencies run: npm ci