Skip to content

Commit

Permalink
runner pod templates
Browse files Browse the repository at this point in the history
  • Loading branch information
mruoss committed Dec 14, 2023
1 parent a9d00a3 commit 1bdec2e
Show file tree
Hide file tree
Showing 9 changed files with 756 additions and 143 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/code_quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Code Quality
on:
push:
branches: [main]
pull_request:
branches: [main]

env:
MIX_ENV: test
KUBECONFIG: /home/runner/.kube/config

jobs:
code-quality:
name: Code Quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4

- name: Setup elixir
id: beam
uses: erlef/setup-beam@v1
with:
version-file: .tool-versions
version-type: strict
install-rebar: true
install-hex: true

- name: Retrieve Build Cache
uses: actions/cache@v3
id: build-folder-cache
with:
path: _build/test
key: ${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-build-test-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}

- name: Retrieve Mix Dependencies Cache
uses: actions/cache@v3
id: mix-cache
with:
path: deps
key: ${{ runner.os }}-${{ steps.beam.outputs.otp-version }}-${{ steps.beam.outputs.elixir-version }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}

- name: Install Mix Dependencies
run: mix deps.get

- name: Check Formatting
run: mix format --check-formatted

- name: Compile
run: MIX_ENV=test mix compile --warnings-as-errors

- name: Unit Tests
run: MIX_ENV=test mix test

- name: Run Credo
run: MIX_ENV=test mix credo --strict
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

- Don't crash the runner if the `:log` option is not set (or set to `false`)

### Added

- `runner_pod_tpl` option for better control over the runner pod manifest [#2](https://github.com/mruoss/flame_k8s_backend/pull/2)

<!--------------------- Don't add new entries after this line --------------------->

## [0.2.1] - 2023-12-11
Expand Down
Loading

0 comments on commit 1bdec2e

Please sign in to comment.