Initial commit #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Elixir CI | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| - 'v*' | |
| push: | |
| branches: | |
| - master | |
| - 'v*' | |
| jobs: | |
| credo: | |
| name: mix credo | |
| runs-on: ubuntu-latest | |
| env: | |
| MIX_ENV: test | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: 27 | |
| elixir-version: 1.18.x | |
| - name: Install Dependencies | |
| run: | | |
| mix local.hex --force | |
| mix local.rebar --force | |
| mix deps.get --only test | |
| - name: Cache build artifacts | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.hex | |
| ~/.mix | |
| _build | |
| key: checks | |
| - run: mix credo --strict --all | |
| dialyzer: | |
| name: mix dialyzer | |
| runs-on: ubuntu-latest | |
| env: | |
| MIX_ENV: test | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: 27 | |
| elixir-version: 1.18.x | |
| - name: Install Dependencies | |
| run: | | |
| mix local.hex --force | |
| mix local.rebar --force | |
| mix deps.get --only test | |
| - name: Cache build artifacts | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.hex | |
| ~/.mix | |
| _build | |
| key: dialyzer | |
| - run: mix dialyzer --halt-exit-status | |
| # doctor: | |
| # name: mix doctor | |
| # runs-on: ubuntu-latest | |
| # env: | |
| # MIX_ENV: test | |
| # steps: | |
| # - uses: actions/checkout@v2 | |
| # - uses: erlef/setup-beam@v1 | |
| # with: | |
| # otp-version: 27 | |
| # elixir-version: 1.18.x | |
| # - name: Install Dependencies | |
| # run: | | |
| # mix local.hex --force | |
| # mix local.rebar --force | |
| # mix deps.get --only test | |
| # - name: Cache build artifacts | |
| # uses: actions/cache@v3 | |
| # with: | |
| # path: | | |
| # ~/.hex | |
| # ~/.mix | |
| # _build | |
| # key: checks | |
| # - run: mix doctor --failed | |
| lint: | |
| name: mix format | |
| runs-on: ubuntu-latest | |
| env: | |
| MIX_ENV: test | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: erlef/setup-beam@v1 | |
| with: | |
| otp-version: 27 | |
| elixir-version: 1.18.x | |
| - name: Install Dependencies | |
| run: | | |
| mix local.hex --force | |
| mix local.rebar --force | |
| mix deps.get --only test | |
| - name: Cache build artifacts | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.hex | |
| ~/.mix | |
| _build | |
| key: checks | |
| - run: mix format --check-formatted | |
| # mix_test: | |
| # name: mix test (Elixir ${{matrix.elixir}} | OTP ${{matrix.otp}}) | |
| # runs-on: ${{ matrix.os }} | |
| # strategy: | |
| # fail-fast: false | |
| # matrix: | |
| # include: | |
| # - elixir: 1.15.x | |
| # otp: 24 | |
| # os: ubuntu-latest | |
| # - elixir: 1.15.x | |
| # otp: 25 | |
| # os: ubuntu-latest | |
| # - elixir: 1.16.x | |
| # otp: 26 | |
| # os: ubuntu-latest | |
| # - elixir: 1.17.x | |
| # otp: 27 | |
| # os: ubuntu-latest | |
| # - elixir: 1.18.x | |
| # otp: 27 | |
| # os: ubuntu-latest | |
| # - elixir: 1.18.x | |
| # otp: 28 | |
| # os: ubuntu-latest | |
| # env: | |
| # MIX_ENV: test | |
| # steps: | |
| # - uses: actions/checkout@v2 | |
| # - uses: erlef/setup-beam@v1 | |
| # with: | |
| # otp-version: ${{matrix.otp}} | |
| # elixir-version: ${{matrix.elixir}} | |
| # - name: Install Dependencies | |
| # run: | | |
| # mix local.hex --force | |
| # mix local.rebar --force | |
| # mix deps.get --only test | |
| # - name: Cache build artifacts | |
| # uses: actions/cache@v3 | |
| # with: | |
| # path: | | |
| # ~/.hex | |
| # ~/.mix | |
| # _build | |
| # key: ${{ matrix.otp }}-${{ matrix.elixir }}-build | |
| # - run: mix compile | |
| # - run: mix test |