diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 809a2f60..e4003033 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,4 @@ -# Continuous Integration (Packaging) pipeline +# purpose: Continuous Integration (build, test, lint, scan) name: CI @@ -21,29 +21,27 @@ jobs: name: Build runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@master - + - name: Checkout repository + uses: actions/checkout@v3 + - name: Install Node.js (LTS) + uses: actions/setup-node@v3 + with: + node-version: 18 - name: Setup node_modules cache id: cache-nodemodules uses: actions/cache@v3 env: cache-name: cache-node-modules with: - # cache node_modules to improve performance dramatically path: node_modules key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - - name: Install dependencies run: npm install - - name: Build run: npm run build:prod env: NODE_OPTIONS: '--openssl-legacy-provider' - # TODO: lint, sonar, tests - - name: Create container image run: | docker build -f .github/workflows/Dockerfile-ci -t hobbyfarm/admin-ui:${GIT_COMMIT_SHORT_HASH:-dev} . diff --git a/src/app/header/header.component.html b/src/app/header/header.component.html index 0008530d..acbd77b0 100644 --- a/src/app/header/header.component.html +++ b/src/app/header/header.component.html @@ -27,8 +27,7 @@ - - \ No newline at end of file +