Merge pull request #22 from philenius/feature/upgrade-to-angular-v17 #58
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: Build & test NPM package | |
on: | |
push: | |
branches: [develop,main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build ngx-annotate-text '--configuration production' | |
- name: Lint | |
run: npm run lint ngx-annotate-text | |
- name: Test | |
run: npm run test-headless ngx-annotate-text | |
- name: Build Angular demo app | |
run: npm run build --omit=dev |