Skip to content

Commit

Permalink
try to build angular
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetancollaud committed Feb 5, 2024
1 parent 1b16821 commit d54acce
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 25 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build frontend

on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install dependencies
working-directory: ./frontend
run: npm install

- name: Generate Graphql
working-directory: ./frontend
run: npm run generate

- name: Build
working-directory: ./frontend
run: npm run build

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}:frontend"
push: true
tags: spoud/kafka-cost-control-ui:latest
File renamed without changes.
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"test:watch": "ng test",
"test": "ng test --watch=false --browsers=ChromeHeadless",
"generate": "./node_modules/.bin/graphql-codegen --config graphql/codegen.yml",
"update-schema": "wget -O graphql/schema.graphql http://localhost:8080/graphql/schema.graphql"
},
Expand Down
23 changes: 0 additions & 23 deletions frontend/src/app/tab-others/others/others.component.spec.ts

This file was deleted.

0 comments on commit d54acce

Please sign in to comment.