Skip to content

CI: Move POSIX compliance action to its own file (#14969) #2

CI: Move POSIX compliance action to its own file (#14969)

CI: Move POSIX compliance action to its own file (#14969) #2

# 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"