Skip to content
Open
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
5 changes: 5 additions & 0 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"@commitlint/config-conventional"
]
}
6 changes: 6 additions & 0 deletions .github/workflows/build-app-image-and-run-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ on:
Useful for other events like `workflow_run`, see https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows
required: false
type: string
# See: https://github.com/actions/checkout
checkout_fetch_depth:
description: Number of commits to fetch. 0 indicates all history for all branches and tags.
type: number
required: false

jobs:
build_image:
Expand Down Expand Up @@ -194,6 +199,7 @@ jobs:
- uses: actions/checkout@v5
with:
ref: ${{ inputs.git_ref }}
fetch-depth: ${{ inputs.checkout_fetch_depth }}

- name: Configure AWS credentials
if: ${{ inputs.aws_role_to_assume }}
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/build-in-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Build

on:
pull_request:

jobs:
build-test-image-and-run-checks:
name: Build test image and run checks
uses: ./.github/workflows/build-app-image-and-run-command.yml
with:
checkout_fetch_depth: 0
image_target: base
image_tags: rails-cicd-pipelines
run_command: |
docker run rails-cicd-pipelines \
npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM node:24.11-alpine AS base

WORKDIR /usr/src

RUN apk add git

COPY package.json package-lock.json ./
RUN npm install
COPY . ./
Loading