diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 735e4d7..2002e9c 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -30,6 +30,21 @@ jobs: fileVersion: ${{ steps.gitversion.outputs.MajorMinorPatch }} informationalVersion: ${{ steps.gitversion.outputs.InformationalVersion }} + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + cache-dependency-path: TiaCodegen-ts/package-lock.json + - name: Install TypeScript dependencies + run: npm ci + working-directory: TiaCodegen-ts + - name: Build TypeScript + run: npm run build + working-directory: TiaCodegen-ts + - name: Test TypeScript + run: npm test + working-directory: TiaCodegen-ts - name: Restore dependencies run: dotnet restore - name: Build diff --git a/.github/workflows/dotnetpull.yml b/.github/workflows/dotnetpull.yml index a547030..4fc917f 100644 --- a/.github/workflows/dotnetpull.yml +++ b/.github/workflows/dotnetpull.yml @@ -15,6 +15,21 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 9.0.x + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + cache-dependency-path: TiaCodegen-ts/package-lock.json + - name: Install TypeScript dependencies + run: npm ci + working-directory: TiaCodegen-ts + - name: Build TypeScript + run: npm run build + working-directory: TiaCodegen-ts + - name: Test TypeScript + run: npm test + working-directory: TiaCodegen-ts - name: Restore dependencies run: dotnet restore - name: Build