ci: don't check elixir code formatting twice

also fix actionlint extraction
This commit is contained in:
Ivan Dyachkov 2023-08-04 09:40:34 +02:00
parent fdf02a7083
commit 75834c2d91
1 changed files with 7 additions and 12 deletions

View File

@ -20,14 +20,13 @@ runs:
run: | run: |
DEBIAN_FRONTEND=noninteractive apt-get update -qy && apt-get install -qy shellcheck DEBIAN_FRONTEND=noninteractive apt-get update -qy && apt-get install -qy shellcheck
./scripts/shellcheck.sh ./scripts/shellcheck.sh
# https://github.com/rhysd/actionlint/blob/main/docs/usage.md#use-actionlint-on-github-actions
- name: Check workflow files - name: Check workflow files
shell: bash shell: bash
env: env:
ACTIONLINT_VSN: 1.6.25 ACTIONLINT_VSN: 1.6.25
run: | run: |
wget https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VSN}/actionlint_${ACTIONLINT_VSN}_linux_amd64.tar.gz wget https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VSN}/actionlint_${ACTIONLINT_VSN}_linux_amd64.tar.gz
tar xfz actionlint_${ACTIONLINT_VSN}_linux_amd64.tar.gz tar zxf actionlint_${ACTIONLINT_VSN}_linux_amd64.tar.gz actionlint
# TODO: enable shellcheck when all the current issues are fixed # TODO: enable shellcheck when all the current issues are fixed
./actionlint -color \ ./actionlint -color \
-shellcheck= \ -shellcheck= \
@ -41,14 +40,6 @@ runs:
shell: bash shell: bash
run: | run: |
./scripts/apps-version-check.sh ./scripts/apps-version-check.sh
- name: Check Erlang code formatting
shell: bash
run: |
./scripts/check-format.sh
- name: Run elvis check
shell: bash
run: |
./scripts/elvis-check.sh $GITHUB_BASE_REF
- name: Setup mix - name: Setup mix
env: env:
MIX_ENV: emqx-enterprise MIX_ENV: emqx-enterprise
@ -56,10 +47,14 @@ runs:
shell: bash shell: bash
run: | run: |
mix local.hex --force && mix local.rebar --force mix local.hex --force && mix local.rebar --force
- name: Check Elixir code formatting - name: Check formatting
env: env:
MIX_ENV: emqx-enterprise MIX_ENV: emqx-enterprise
PROFILE: emqx-enterprise PROFILE: emqx-enterprise
shell: bash shell: bash
run: | run: |
mix format --check-formatted ./scripts/check-format.sh
- name: Run elvis check
shell: bash
run: |
./scripts/elvis-check.sh $GITHUB_BASE_REF