Skip to content

Commit

Permalink
update ci action
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-ebp committed Feb 20, 2024
1 parent c5b7230 commit fa189de
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,17 @@ jobs:
name: Build and run tests

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: setup node.je
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache node modules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
node-version: 20
cache: 'npm'

- name: npm install and npm run CI commands
- name: npm install, build, test, lint
run: |
npm i
npm run build
npm ci
npm run build
npm run test
npm run lint
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"start": "concurrently \"nx serve server-asset-sg\" \"nx serve client-asset-sg --disableHostCheck=true\"",
"build": "concurrently \"nx build server-asset-sg\" \"nx build client-asset-sg\"",
"test": "nx run-many --target=test --all",
"lint": "nx run-many --target=lint --all",
"postinstall": "node ./decorate-angular-cli.js"
},
"private": true,
Expand Down

0 comments on commit fa189de

Please sign in to comment.