From b1856b952e570e2b2ab212441568696d8d1dfd31 Mon Sep 17 00:00:00 2001 From: DeveloperC Date: Tue, 10 Sep 2024 20:32:29 +0100 Subject: [PATCH] ci: moving GitHub Actions workflow formatting check (#41) --- .github/workflows/continuous-integration.yml | 2 +- .github/workflows/github-actions-workflows.yml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 7b00084..48cf532 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - language: [rust, python, shell, yaml] + language: [rust, python, shell] steps: - name: Download Earthly v0.8.12. run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" diff --git a/.github/workflows/github-actions-workflows.yml b/.github/workflows/github-actions-workflows.yml index fe59076..9df6b06 100644 --- a/.github/workflows/github-actions-workflows.yml +++ b/.github/workflows/github-actions-workflows.yml @@ -17,3 +17,13 @@ jobs: uses: actions/checkout@v3 - name: Check GitHub Actions workflows linting. run: earthly +check-github-actions-workflows-linting + formatting: + name: Formatting + runs-on: ubuntu-latest + steps: + - name: Download Earthly v0.8.12. + run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" + - name: Checkout code. + uses: actions/checkout@v3 + - name: Check formatting. + run: earthly +check-yaml-formatting