Skip to content

Commit 8be3b9b

Browse files
committed
test and lint action
1 parent a842915 commit 8be3b9b

File tree

4 files changed

+51
-3
lines changed

4 files changed

+51
-3
lines changed

.github/workflows/build-and-deploy-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy to Firebase Hosting on merge
1+
name: Build and deploy app
22
on:
33
push
44

.github/workflows/build-and-deploy-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Push Docker Image
1+
name: Build and deploy core
22

33
on:
44
push

.github/workflows/test-lint.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Test and lint
2+
on:
3+
push
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout repository
10+
uses: actions/checkout@v4
11+
12+
- name: Set up Deno
13+
uses: denoland/setup-deno@v2
14+
with:
15+
deno-version: v2.3.5
16+
17+
- name: Install dependencies
18+
run: |
19+
deno install --allow-scripts --reload
20+
21+
- name: Lint
22+
run: deno lint
23+
24+
- name: Fmt check
25+
run: deno fmt --check
26+
27+
test:
28+
runs-on: ubuntu-latest
29+
services:
30+
stripe-mock:
31+
image: stripe/stripe-mock:latest
32+
ports:
33+
- 12111:12111
34+
- 12112:12112
35+
steps:
36+
- name: Checkout repository
37+
uses: actions/checkout@v4
38+
39+
- name: Set up Deno
40+
uses: denoland/setup-deno@v2
41+
with:
42+
deno-version: v2.3.5
43+
44+
- name: Install dependencies
45+
run: |
46+
deno install --allow-scripts --reload
47+
48+
- name: Test
49+
run: deno task test

deno.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"dev:runner": "deno task --config ./packages/runner/deno.json dev",
1212
"build:app": "deno task --config ./packages/app/deno.json build",
1313
"build:core": "deno task --config ./packages/core/deno.json build",
14-
"build": "deno task build:app && deno task build:core",
1514
"test": "STRIPE_USE_MOCK=true deno test -A",
1615
"db:docker": "docker container rm stackcore-pg --force || true && docker run --name stackcore-pg -e POSTGRES_PASSWORD=password -e POSTGRES_USER=user -e POSTGRES_DB=core -p 5432:5432 -d postgres:latest",
1716
"db:migrate": "deno task --config ./packages/core/deno.json migrate -A",

0 commit comments

Comments
 (0)