Skip to content

Commit

Permalink
ci: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
aitboudad committed Oct 13, 2024
1 parent 9b88113 commit 5dcdc4e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 47 deletions.
58 changes: 22 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion demo/src/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
13 changes: 3 additions & 10 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down

0 comments on commit 5dcdc4e

Please sign in to comment.