From ba563474d6520cbd1969a34606e7ac44da14d60d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20F=C3=B6hring?= Date: Fri, 12 Jan 2024 17:45:18 +0100 Subject: [PATCH] Create compatibility-os-windows.yml --- .../workflows/compatibility-os-windows.yml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 .github/workflows/compatibility-os-windows.yml diff --git a/.github/workflows/compatibility-os-windows.yml b/.github/workflows/compatibility-os-windows.yml new file mode 100644 index 000000000..b8ee187ad --- /dev/null +++ b/.github/workflows/compatibility-os-windows.yml @@ -0,0 +1,71 @@ +name: "OS: macOS" + +on: + push: + branches: + - master + - release/* + pull_request: + branches: + - master + +jobs: + test: + name: Install commands + runs-on: macos-latest + steps: + - uses: actions/checkout@master + + - name: Install awscli and awsebcli + run: | + brew update + brew install elixir + + - run: mix deps.get + - run: mix deps.compile + - run: | + mix compile --force --warnings-as-errors + + - run: | + mix credo --mute-exit-status + + mix credo --strict --mute-exit-status + mix credo --strict --enable-disabled-checks . --mute-exit-status + mix credo --debug --mute-exit-status + mix credo --strict --format=sarif --mute-exit-status + mix credo list --mute-exit-status + mix credo suggest --mute-exit-status + mix credo diff HEAD^ --mute-exit-status + mix credo diff v1.4.0 --mute-exit-status + + - run: | + # explain issues + mix credo test/fixtures/example_code/clean_redux.ex:1:11 --mute-exit-status + mix credo explain test/fixtures/example_code/clean_redux.ex:1:11 --mute-exit-status + mix credo test/fixtures/example_code/clean_redux.ex:1:11 --mute-exit-status --format=json + mix credo explain test/fixtures/example_code/clean_redux.ex:1:11 --mute-exit-status --format=json + + - run: | + # explain check + mix credo explain Credo.Check.Refactor.Nesting --mute-exit-status + mix credo explain Credo.Check.Refactor.Nesting --mute-exit-status --format=json + + - run: | + mix credo categories + mix credo categories --format=json + + - run: | + mix credo info + mix credo info --verbose + mix credo info --format=json + mix credo info --verbose --format=json + + - run: | + mix credo version + mix credo help + + mix credo -v + mix credo -h + + echo "" + echo "Smoke test successful."