From 5dcdc4eb39f15fb25476e9c3dbd435cec9cdced2 Mon Sep 17 00:00:00 2001 From: Abdellatif Ait Boudad Date: Sun, 13 Oct 2024 14:22:42 +0100 Subject: [PATCH] ci: fix build --- .github/workflows/ci.yml | 58 +++++++++++++++------------------------- demo/src/index.html | 2 +- tsconfig.json | 13 +++------ 3 files changed, 26 insertions(+), 47 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc13835..f489173 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,39 +7,25 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Cache node modules - uses: actions/cache@v2 - env: - cache-name: cache-node-modules - with: - path: | - ~/.npm - ./node_modules - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- - - - uses: actions/setup-node@v2 - with: - node-version: '14' - registry-url: 'https://registry.npmjs.org' - - - name: Install Dependencies - run: npm install - - - name: Build - run: npm run build - - - name: Lint & Format - run: | - npm run format - npm run lint - - - name: Test - run: npm run test + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + + - name: Install Dependencies + run: npm install + + - name: Build + run: npm run build + + - name: Lint & Format + run: | + npm run format + # npm run lint + + - name: Test + run: npm run test diff --git a/demo/src/index.html b/demo/src/index.html index 71f0485..a6f3450 100644 --- a/demo/src/index.html +++ b/demo/src/index.html @@ -1,4 +1,4 @@ - + diff --git a/tsconfig.json b/tsconfig.json index 7cc63fb..fcc4799 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,17 +11,10 @@ "moduleResolution": "node", "importHelpers": true, "target": "ES2022", - "typeRoots": [ - "node_modules/@types" - ], - "lib": [ - "es2018", - "dom" - ], + "typeRoots": ["node_modules/@types"], + "lib": ["es2018", "dom"], "paths": { - "@ngx-loading-bar/*": [ - "packages/*/src/public_api" - ] + "@ngx-loading-bar/*": ["packages/*/src/public_api"] }, "useDefineForClassFields": false },