From b387a19a2250e02c9e175c9fe7315a13db88a39b Mon Sep 17 00:00:00 2001 From: DeveloperC Date: Tue, 10 Sep 2024 20:21:41 +0100 Subject: [PATCH] ci: moving GitHub Actions workflow formatting check --- .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