diff --git a/.github/workflows/ci-posix-compliance.yml b/.github/workflows/ci-posix-compliance.yml deleted file mode 100644 index 09b14a60b5..0000000000 --- a/.github/workflows/ci-posix-compliance.yml +++ /dev/null @@ -1,44 +0,0 @@ -# SPDX-License-Identifier: Apache-2.0 -# SPDX-FileCopyrightText: 2021 The Elixir Team -# SPDX-FileCopyrightText: 2012 Plataformatec - -name: CI - -on: - workflow_dispatch: - - push: - paths: - - ".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" - -env: - LANG: C.UTF-8 - -permissions: - contents: read - -jobs: - check_posix_compliance: - name: Check POSIX compliance - runs-on: ubuntu-24.04 - steps: - - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 - - 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" diff --git a/.github/workflows/posix_compliance.yml b/.github/workflows/posix_compliance.yml new file mode 100644 index 0000000000..16d10ee94d --- /dev/null +++ b/.github/workflows/posix_compliance.yml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: Apache-2.0 +# SPDX-FileCopyrightText: 2021 The Elixir Team +# SPDX-FileCopyrightText: 2012 Plataformatec + +name: POSIX Compliance + +on: + push: + paths: &paths-filter + - .github/workflows/posix_compliance.yml + - bin/elixir + - bin/elixirc + - bin/iex + + pull_request: + paths: *paths-filter + + workflow_dispatch: + +permissions: + contents: read + +env: + LANG: C.UTF-8 + +jobs: + check_posix_compliance: + name: Check POSIX compliance + runs-on: ubuntu-latest + + strategy: + fail-fast: false + + steps: + - 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"