-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (44 loc) · 1.28 KB
/
ci.yml
File metadata and controls
55 lines (44 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# This workflow handles the Continuous Integration pipeline for MeetAtMensa
name: Continuous Integration (CI)
on:
# Callable by the CI/CD Action
workflow_call:
# Run on push to dev branches
push:
branches-ignore: [main]
# Run on PRs to main
pull_request:
branches: [main]
# Cancel running action if another is triggered on the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Run Update API Spec
update_api_spec:
name: Update API Spec
uses: ./.github/workflows/update_api_spec.yml
# TODO Add linting
# Run Java unit tests
unit_tests:
name: Run Tests
uses: ./.github/workflows/java_tests.yml
needs: update_api_spec
# Run GenAI module tests
genai_tests:
name: Run GenAI Tests
uses: ./.github/workflows/genai_tests.yml
needs: update_api_spec
secrets:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
# Run UI tests (unit, integration, and e2e)
ui_tests:
name: Run UI Tests
uses: ./.github/workflows/ui_tests.yml
needs: update_api_spec
# TODO Add Integration Testing
# Call the docker_build workflow to build and publish images
build:
name: Build & Publish Images
uses: ./.github/workflows/docker_build.yml
needs: [unit_tests, ui_tests]