Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
ci(GITHUB): add toml lint step
Browse files Browse the repository at this point in the history
  • Loading branch information
niall-byrne committed Feb 15, 2023
1 parent fbadb62 commit 0f54cfd
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
./.github/scripts/notifications.sh "${NOTIFICATION}" ":x: error reporting job status!"
create_release:
needs: [_start_notification, documentation_test, molecule_lint, osx_build, security_test, workflow_lint]
needs: [_start_notification, documentation_test, molecule_lint, osx_build, security_test, toml_lint, workflow_lint]

runs-on: ubuntu-latest

Expand Down Expand Up @@ -287,6 +287,36 @@ jobs:
run: |
./.github/scripts/notifications.sh "${NOTIFICATION}" ":x: security checks failed!"
toml_lint:

runs-on: ubuntu-latest

steps:
- name: Toml Lint -- Checkout Repository
uses: actions/checkout@v3

- name: Toml Lint -- Setup Environment
run: |
source ./.github/scripts/setup.sh
sudo apt-get install -y golang-github-pelletier-go-toml
env:
WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

- name: Toml Lint -- Run Linter
run: |
tomll pyproject.toml
git diff --exit-code
- name: Toml Lint -- Report Job Status (Success)
if: env.VERBOSE_NOTIFICATIONS == '1'
run: |
./.github/scripts/notifications.sh "${NOTIFICATION}" ":white_check_mark: toml linting was successful!"
- name: Toml Lint -- Report Job Status (Failure)
if: failure()
run: |
./.github/scripts/notifications.sh "${NOTIFICATION}" ":x: toml linting has failed!"
workflow_lint:

runs-on: ubuntu-latest
Expand Down

0 comments on commit 0f54cfd

Please sign in to comment.