From d24615e049ec8006890ca0ce58c22908b36d1f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=20G=C3=B3mez?= Date: Fri, 25 Apr 2025 11:50:50 +0200 Subject: [PATCH] fix: execute build on ci --- .github/workflows/ci.yml | 3 +++ tests/Step.ts | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d39227..42d429d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,8 +20,11 @@ jobs: run: npm install - name: 💅 Lint code style run: npm run lint + - name: 💻 Build + run: npm run build - name: ✅ Run tests run: npm run test + publish: if: github.ref == 'refs/heads/main' && github.event_name == 'push' name: 📦 Publish diff --git a/tests/Step.ts b/tests/Step.ts index bf4e752..5c47b8a 100644 --- a/tests/Step.ts +++ b/tests/Step.ts @@ -1,4 +1,5 @@ import { Primitives } from "../src"; +import { ISODateTime } from "../src/Primitives"; export class Step { constructor( @@ -9,7 +10,7 @@ export class Step { toPrimitives(): Primitives { return { name: this.name, - publishedAt: this.publishedAt.getTime(), + publishedAt: this.publishedAt.toISOString() as ISODateTime, }; } }