-
Notifications
You must be signed in to change notification settings - Fork 418
71 lines (58 loc) · 1.97 KB
/
compatibility-os-mac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: "Compatibility: macOS"
on:
push:
branches:
- master
- release/*
pull_request:
branches:
- master
jobs:
test:
name: "Compile & Run"
runs-on: macos-latest
steps:
- uses: actions/checkout@master
- name: Install Elixir
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."