Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aktivieren von Github Actions #38

Open
mayrstefan opened this issue Dec 19, 2023 · 0 comments
Open

Aktivieren von Github Actions #38

mayrstefan opened this issue Dec 19, 2023 · 0 comments

Comments

@mayrstefan
Copy link
Contributor

Es wäre für das Projekt ein schönes Feature wenn beim push geprüft wird ob die beiden Anwendungen noch sauber gebaut werden können

Beispiel für .github/workflows/build.yml

name: Node.js CI

on: [push]

jobs:
  build_backend:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Use Node.js
        uses: actions/setup-node@v4
        with:
          node-version: '20.x'
      - name: Install dependencies
        working-directory: backend
        run: npm ci
      - name: Compile TypeScript
        working-directory: backend
        run: npm run compile-ts

  build_frontend:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Use Node.js
        uses: actions/setup-node@v4
        with:
          node-version: '20.x'
      - name: Install dependencies
        working-directory: pvtools
        run: npm ci
      # TODO: tests need to be fixed first
      # - name: Run tests
      #   working-directory: pvtools
      #   run: npm run test-all
      - name: Generate static frontend
        working-directory: pvtools
        run: npm run generate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant