Skip to content

Commit bd4c232

Browse files
CI: Minor improvements to POSIX compliance action (#14980)
1 parent 521b16c commit bd4c232

File tree

2 files changed

+51
-44
lines changed

2 files changed

+51
-44
lines changed

.github/workflows/ci-posix-compliance.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
# SPDX-FileCopyrightText: 2012 Plataformatec
4+
5+
name: POSIX Compliance
6+
7+
on:
8+
push:
9+
paths: &paths-filter
10+
- .github/workflows/posix_compliance.yml
11+
- bin/elixir
12+
- bin/elixirc
13+
- bin/iex
14+
15+
pull_request:
16+
paths: *paths-filter
17+
18+
workflow_dispatch:
19+
20+
permissions:
21+
contents: read
22+
23+
env:
24+
LANG: C.UTF-8
25+
26+
jobs:
27+
check_posix_compliance:
28+
name: Check POSIX compliance
29+
runs-on: ubuntu-latest
30+
31+
strategy:
32+
fail-fast: false
33+
34+
steps:
35+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
36+
37+
- name: Install ShellCheck
38+
run: |
39+
sudo apt update
40+
sudo apt install -y shellcheck
41+
42+
- name: Run ShellCheck on bin/ dir
43+
run: |
44+
shellcheck -e SC2039,2086 bin/elixir && \
45+
echo "bin/elixir is POSIX compliant"
46+
47+
shellcheck bin/elixirc && \
48+
echo "bin/elixirc is POSIX compliant"
49+
50+
shellcheck bin/iex && \
51+
echo "bin/iex is POSIX compliant"

0 commit comments

Comments
 (0)