From 21536af7e162a0e4b8df71543452730823ec09eb Mon Sep 17 00:00:00 2001 From: Eksperimental Date: Sat, 29 Nov 2025 22:02:27 -0500 Subject: [PATCH 1/2] CI: Minor improvements to ci-posix-compliance.yml --- .github/workflows/ci-posix-compliance.yml | 47 +++++++++++++---------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci-posix-compliance.yml b/.github/workflows/ci-posix-compliance.yml index 09b14a60b5..19e1942634 100644 --- a/.github/workflows/ci-posix-compliance.yml +++ b/.github/workflows/ci-posix-compliance.yml @@ -2,43 +2,50 @@ # SPDX-FileCopyrightText: 2021 The Elixir Team # SPDX-FileCopyrightText: 2012 Plataformatec -name: CI +name: POSIX Compliance on: - workflow_dispatch: - push: - paths: - - ".github/workflows/ci-posix-compliance.yml" - - "bin/elixir" - - "bin/elixirc" - - "bin/iex" + paths: &paths-filter + - .github/workflows/ci-posix-compliance.yml + - bin/elixir + - bin/elixirc + - bin/iex pull_request: - paths: - - ".github/workflows/ci-posix-compliance.yml" - - "bin/elixir" - - "bin/elixirc" - - "bin/iex" + paths: *paths-filter -env: - LANG: C.UTF-8 + workflow_dispatch: permissions: contents: read +env: + LANG: C.UTF-8 + jobs: check_posix_compliance: name: Check POSIX compliance - runs-on: ubuntu-24.04 + runs-on: ubuntu-latest + + strategy: + fail-fast: false + steps: - - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + - name: Install ShellCheck run: | sudo apt update sudo apt install -y shellcheck + - name: Run ShellCheck on bin/ dir run: | - shellcheck -e SC2039,2086 bin/elixir && echo "bin/elixir is POSIX compliant" - shellcheck bin/elixirc && echo "bin/elixirc is POSIX compliant" - shellcheck bin/iex && echo "bin/iex is POSIX compliant" + shellcheck -e SC2039,2086 bin/elixir && \ + echo "bin/elixir is POSIX compliant" + + shellcheck bin/elixirc && \ + echo "bin/elixirc is POSIX compliant" + + shellcheck bin/iex && \ + echo "bin/iex is POSIX compliant" From bbc2a76881e8bdbb54973e189657be8d03534139 Mon Sep 17 00:00:00 2001 From: Eksperimental Date: Sun, 30 Nov 2025 20:52:52 -0500 Subject: [PATCH 2/2] CI: Rename POSIX compliance file --- .../workflows/{ci-posix-compliance.yml => posix_compliance.yml} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/workflows/{ci-posix-compliance.yml => posix_compliance.yml} (95%) diff --git a/.github/workflows/ci-posix-compliance.yml b/.github/workflows/posix_compliance.yml similarity index 95% rename from .github/workflows/ci-posix-compliance.yml rename to .github/workflows/posix_compliance.yml index 19e1942634..16d10ee94d 100644 --- a/.github/workflows/ci-posix-compliance.yml +++ b/.github/workflows/posix_compliance.yml @@ -7,7 +7,7 @@ name: POSIX Compliance on: push: paths: &paths-filter - - .github/workflows/ci-posix-compliance.yml + - .github/workflows/posix_compliance.yml - bin/elixir - bin/elixirc - bin/iex