Skip to content

Commit bc6db31

Browse files
authored
Merge pull request #5 from JalilaMuadi/addtests-v2
Add CD workflow
2 parents fb12e0d + 496ebf1 commit bc6db31

File tree

2 files changed

+6
-20
lines changed

2 files changed

+6
-20
lines changed

.github/workflows/cd.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,16 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
1413
- name: Check out code
1514
uses: actions/checkout@v4
1615

17-
- name: Set up Node
16+
- name: Set up Node.js
1817
uses: actions/setup-node@v4
1918
with:
20-
node-version: 22
21-
19+
node-version: '22'
20+
2221
- name: Install dependencies
2322
run: npm ci
2423

25-
- name: Build app
26-
run: npm run build
27-
28-
- name: Set up GCP CLI
29-
uses: google-github-actions/setup-gcloud@v1
30-
with:
31-
project_id: ${{ secrets.GCP_PROJECT_ID }}
32-
service_account_key: ${{ secrets.GCP_CREDENTIALS }}
33-
34-
35-
- name: Build & Push Docker image
36-
run: |
37-
IMAGE_NAME=notely
38-
TAG=latest
39-
gcloud builds submit --tag us-central1-docker.pkg.dev/notely-491114/notely-ar-repo/$IMAGE_NAME:$TAG .
24+
- name: Build the app
25+
run: npm run build

src/tests/auth.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, test } from "vitest";
2-
import { getAPIKey } from "../api/auth";
2+
import { getAPIKey } from "../api/auth.js";
33

44
describe("getAPIKey", () => {
55
test("returns the API key from valid header", () => {

0 commit comments

Comments
 (0)