Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# DO NOT EDIT THIS FILE DIRECTLY!
# This is synced from the juno-fx/ci repository in the .microservice/workflows directory and should be modified there.
name: Microservice CI/CD
name: Microservice CI
on:
push:
paths-ignore:
- '.github/**'
- 'crds/**'
workflow_dispatch:
workflow_call:

jobs:
ci:
uses: juno-fx/ci/.github/workflows/ms-ci.yml@main
QC:
uses: ./.github/workflows/ms-qc.yml
secrets: inherit
Test:
needs:
- QC
uses: ./.github/workflows/ms-test.yml
secrets: inherit
66 changes: 66 additions & 0 deletions .github/workflows/ms-qc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Quality Control
on:
workflow_dispatch:
workflow_call:

jobs:
check:
name: Checking Code
env:
IN_CI: "true"
runs-on:
- STANDARD-RUNNER
steps:
# this is the bare minimum to get the runner up and running.
- name: Install Git
run: sudo apt update && sudo apt-get install git -y

- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.JUNO_CI_APP_ID }}
private-key: ${{ secrets.JUNO_CI_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}

- name: Clone Source Code
uses: actions/checkout@v4
with:
submodules: 'true'
token: ${{ steps.generate-token.outputs.token }}

- name: Install Actions
uses: actions/checkout@v4
with:
repository: juno-fx/ci
ref: main
path: juno-ci
clean: false
token: ${{ steps.generate-token.outputs.token }}

- uses: ./juno-ci/actions/runners/tooling
name: Prepare Runner
with:
key: ${{ secrets.AWS_ACCESS }}
secret: ${{ secrets.AWS_SECRET }}
region: ${{ secrets.AWS_REGION }}

- name: Safety Devbox
run: |
# safety net for new runners who already ship with podman override for docker and kind.
devbox rm docker kind || echo "No docker or kind present. Good to go."

- name: Check Code
shell: bash
env:
GH_TOKEN: ${{ secrets.GIT_PASS }}
IN_CI: "true"
run: |
if [ -z "$GH_TOKEN" ]; then
echo "Token missing"
exit 1
else
echo "Token present"
fi
devbox run make install
devbox run make check
68 changes: 68 additions & 0 deletions .github/workflows/ms-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Testing
on:
workflow_dispatch:
workflow_call:

jobs:
test:
name: Testing
env:
IN_CI: "true"
runs-on:
- STANDARD-RUNNER
steps:
# this is the bare minimum to get the runner up and running.
- name: Install Git
run: sudo apt update && sudo apt-get install git -y

- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v2
with:
app-id: ${{ secrets.JUNO_CI_APP_ID }}
private-key: ${{ secrets.JUNO_CI_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}

- name: Clone Source Code
uses: actions/checkout@v4
with:
submodules: 'true'
token: ${{ steps.generate-token.outputs.token }}

- name: Install Actions
uses: actions/checkout@v4
with:
repository: juno-fx/ci
ref: main
path: juno-ci
clean: false
token: ${{ steps.generate-token.outputs.token }}

- uses: ./juno-ci/actions/runners/tooling
name: Prepare Runner
with:
key: ${{ secrets.AWS_ACCESS }}
secret: ${{ secrets.AWS_SECRET }}
region: ${{ secrets.AWS_REGION }}

- name: Safety Devbox
run: |
# safety net for new runners who already ship with podman override for docker and kind.
devbox rm docker kind || echo "No docker or kind present. Good to go."

- name: Run pnpm audit
env:
JUNO_LICENSE_TOKEN: ${{ secrets.JUNO_LICENSE_TOKEN }}
GH_TOKEN: ${{ secrets.GIT_PASS }}
IN_CI: "true"
if: contains(fromJSON('["juno-fx/hubble","juno-fx/genesis"]'), github.repository)
run: devbox run make audit

- name: Run Tests
env:
JUNO_LICENSE_TOKEN: ${{ secrets.JUNO_LICENSE_TOKEN }}
GH_TOKEN: ${{ secrets.GIT_PASS }}
IN_CI: "true"
run: |
devbox run make down
devbox run make test
41 changes: 0 additions & 41 deletions .github/workflows/release.yml

This file was deleted.

5 changes: 4 additions & 1 deletion k8s/testservice/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ spec:
- containerPort: 3000
name: http
- name: rhea
image: junoinnovations/rhea:unstable
image: junoinnovations/rhea:v1.0.0
env:
- name: LOGLEVEL
value: debug
ports:
- containerPort: 13000
name: auth
Expand Down
Loading