updated list and database #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: AED Penang CI | |
on: | |
push: | |
branches: [ main, master ] | |
pull_request: | |
branches: [ main, master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
cache: 'npm' | |
- name: Install Dependencies | |
run: | | |
npm install | |
npm install --save-dev mocha @types/mocha chai @types/chai | |
- name: Build | |
run: npm run build | |
- name: TypeScript Compile Check | |
run: npx tsc --noEmit | |
- name: Run Tests (if test files exist) | |
run: | | |
if [ -d "test" ]; then | |
npm test | |
else | |
echo "No test files found, skipping tests" | |
fi |