Skip to content

CI Build

CI Build #10

Workflow file for this run

name: CI Build
on:
workflow_dispatch:
permissions:
id-token: write
checks: write
packages: write
actions: read
contents: write
issues: read
pull-requests: write
jobs:
build-webfrontend:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'
- run: 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc'
- name: Check Makefile
run: |
if [ -f Makefile ]; then
echo "Makefile exists."
make -qp | awk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ {split($1,A,/ /); for(i in A)print A[i]}' | sort -u
else
echo "Makefile does not exist."
fi
- run: make webfrontend-build
- uses: actions/upload-artifact@v4
with:
name: webfrontend
path: service/webfrontend/build/
test-webfrontend:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'
- run: 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc'
- run: make webfrontend-test
- name: Upload Test Results (webfrontend)
if: always()
uses: actions/upload-artifact@v4
with:
name: webfrontend-test-results
path: "**/webfrontend/junit.xml"