Merge pull request #57 from Zapper9982/bugfix/issue-51 #113
This file contains hidden or 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: Package | |
on: | |
push: | |
branches: ["develop"] | |
jobs: | |
CodeQL: | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: true # Include submodules | |
fetch-depth: 0 # Ensure the full history is fetched | |
- name: Update submodules | |
run: git submodule update --init --recursive | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Build with NPM | |
run: | | |
npm config set legacy-peer-deps true | |
npm install -g @angular/cli | |
npm install [email protected] --save-dev | |
npm install --force | |
npm run build-ci | |
- name: Create WAR file | |
run: jar -cvf tm-ui.war -C dist . | |
- name: Upload WAR file as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: TM-UI | |
path: dist/tm-ui/tm-ui.war |