Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rrrene committed Jan 12, 2024
1 parent d98830d commit acda01c
Showing 1 changed file with 47 additions and 5 deletions.
52 changes: 47 additions & 5 deletions .github/workflows/compatibility-os.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CI Tests"
name: "OS Smoke Tests"
on:
push:
branches:
Expand All @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-12, windows-2022]
os: [ubuntu-20.04, windows-2022] # macos-12 (erlef/setup-beam does not work with macOS)
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -26,6 +26,48 @@ jobs:
elixir-version: 1.16.0
- run: mix deps.get
- run: mix deps.compile
- run: mix compile --warnings-as-errors
- run: mix test
- run: mix credo --mute-exit-status
- run: |
mix compile --force --warnings-as-errors
mix credo --mute-exit-status
- run: |
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."

0 comments on commit acda01c

Please sign in to comment.