fix(ci): use deno install for unit tests, add postgres readiness check
This commit is contained in:
@@ -16,16 +16,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: "20"
|
|
||||||
|
|
||||||
- uses: denoland/setup-deno@v2
|
- uses: denoland/setup-deno@v2
|
||||||
with:
|
with:
|
||||||
deno-version: v2.x
|
deno-version: v2.x
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install --ignore-scripts
|
run: deno install
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: deno task test:unit
|
run: deno task test:unit
|
||||||
@@ -59,8 +55,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
deno-version: v2.x
|
deno-version: v2.x
|
||||||
|
|
||||||
- name: Install drizzle-kit
|
- name: Install dependencies
|
||||||
run: npm install --ignore-scripts
|
run: npm install --ignore-scripts && deno install
|
||||||
|
|
||||||
|
- name: Wait for postgres
|
||||||
|
run: |
|
||||||
|
until pg_isready -h localhost -p 5432 -U test; do
|
||||||
|
echo "Waiting for postgres..."
|
||||||
|
sleep 2
|
||||||
|
done
|
||||||
|
|
||||||
- name: Apply migrations
|
- name: Apply migrations
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user