-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
116 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# TODO: not used | ||
--- | ||
name: "Run Linters" | ||
description: "Run Linters for Nautobot App" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# TODO: NOT USED | ||
--- | ||
name: "Unit Tests" | ||
description: "Run Unit Tests for Nautobot App" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
name: "Check Migrations" | ||
# yamllint disable-line rule:truthy | ||
on: | ||
workflow_call: | ||
inputs: | ||
db-backend: | ||
description: "Database Backend" | ||
required: true | ||
type: "string" | ||
nautobot-version: | ||
description: "Nautobot Version" | ||
required: true | ||
type: "string" | ||
python-version: | ||
description: "Python Version" | ||
required: true | ||
type: "string" | ||
tag-prefix: | ||
description: "Docker Image Tag Prefix" | ||
required: true | ||
type: "string" | ||
use-cache: | ||
description: "Whether to use GitHub Actions cache" | ||
required: true | ||
type: "boolean" | ||
jobs: | ||
check-migrations: | ||
runs-on: "ubuntu-22.04" | ||
steps: | ||
- name: "Check out repository code" | ||
uses: "actions/checkout@v4" | ||
- name: "Configure Compose" | ||
id: "config" | ||
uses: "./.github/actions/config-compose" | ||
with: | ||
db-backend: "${{ inputs.db-backend }}" | ||
nautobot-version: "${{ inputs.nautobot-version }}" | ||
python-version: "${{ inputs.python-version }}" | ||
tag-prefix: "${{ inputs.tag-prefix }}" | ||
use-cache: "${{ inputs.use-cache }}" | ||
- name: "Check Migrations" | ||
env: | ||
COMPOSE_ANSI: "0" | ||
COMPOSE_FILE: "${{ steps.config.outputs.compose-file }}" | ||
NAUTOBOT_VER: "${{ inputs.nautobot-version }}" | ||
PYTHON_VER: "${{ inputs.python-version }}" | ||
run: | | ||
cd development | ||
docker compose run \ | ||
--rm \ | ||
--entrypoint='' \ | ||
-- \ | ||
nautobot \ | ||
invoke check-migrations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters