diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 8f36a13a..e0b28798 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -7,33 +7,16 @@ env: FORCE_COLOR: 1 jobs: - rust-formatting: - name: Rust Formatting + formatting: + name: Formatting runs-on: ubuntu-latest + strategy: + matrix: + language: [rust, shell, yaml] 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 Rust formatting. - run: earthly --ci +check-rust-formatting - shell-formatting: - name: Shell 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 Shell formatting. - run: earthly --ci +check-shell-formatting - yaml-formatting: - name: YAML 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 YAML formatting. - run: earthly --ci +check-yaml-formatting + - name: Check formatting. + run: earthly --ci +check-${{ matrix.language }}-formatting