Skip to content

Commit 69badd5

Browse files
committed
build: improved playground + added flake
1 parent c4d723b commit 69badd5

File tree

14 files changed

+1254
-44
lines changed

14 files changed

+1254
-44
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
POSTGRES_PASSWORD=PASSWORD

.envrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
2+
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
3+
fi
4+
5+
watch_file flake.nix
6+
watch_file flake.lock
7+
8+
dotenv
9+
10+
if ! use flake . --no-pure-eval
11+
then
12+
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
13+
fi

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
with:
2626
USE_LOCKFILE: ${{ secrets.USE_LOCKFILE }}
2727

28+
- run: pnpm i --frozen-lockfile
29+
working-directory: playground
30+
2831
- name: Build
2932
uses: ./.github/actions/composite-build
3033

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ coverage
1616
*.lcov
1717
.nyc_output
1818

19+
.direnv/
20+
.devenv/
21+
# this is just for testing
22+
!.env

0 commit comments

Comments
 (0)