| 1 | name: Check setup |
| 2 | description: | |
| 3 | This action sets up the Bun environment and installs dependencies for the project. |
| 4 | |
| 5 | runs: |
| 6 | using: composite |
| 7 | steps: |
| 8 | - name: Setup bun |
| 9 | uses: oven-sh/setup-bun@v2 |
| 10 | |
| 11 | - name: Install dependencies |
| 12 | shell: bash |
| 13 | run: bun install --frozen-lockfile |
| 14 | |
| 15 | - name: Create environment variables file |
| 16 | shell: bash |
| 17 | run: | |
| 18 | cat << EOF > .env.local |
| 19 | DATABASE_URL="postgresql://postgres:<YOUR_PASSWORD>@localhost:5432/starter" |
| 20 | BETTER_AUTH_SECRET="1234567890" |
| 21 | CORS_ORIGIN="http://localhost:3000" |
| 22 | NEXT_PUBLIC_BASE_URL=http://localhost:3000 |
| 23 | EOF |