Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/express-4.19.2
Browse files Browse the repository at this point in the history
  • Loading branch information
prasetyodimas authored Mar 28, 2024
2 parents f3d6a0e + 6234a68 commit eb3a335
Show file tree
Hide file tree
Showing 5 changed files with 4,109 additions and 4,379 deletions.
52 changes: 33 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,43 @@
name: CI
on:
push:
branches: [ main ]
branches:
- '*'
- '*/*'
- main
pull_request:
branches: [ main ]
workflow_dispatch:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
- name: Checkout code
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
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 }}-
- name: npm install and npm run CI commands
run: |
npm install
npm run build
node-version: 16.20.2

- name: Install dependencies
run: npm install --force

- name: Build of code
run: npm run build

- name: Run unit tests
id: unit-tests
run: |
if npm run test:ci; then
echo "Tests passed"
echo "::set-output name=status::success"
else
echo "Tests failed"
echo "::set-output name=status::failure"
fi
- name: Check test status
run: exit 1
if: ${{ steps.unit-tests.outputs.status == 'failure' }}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.19.0
v16.20.2
5 changes: 4 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,8 @@
}
}
},
"defaultProject": "my-app"
"defaultProject": "my-app",
"cli": {
"analytics": "205be248-7649-47d3-aac5-1338313e358b"
}
}
Loading

0 comments on commit eb3a335

Please sign in to comment.