diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4a1de5a4..1130618d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,6 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + key: ${{ github.job }}-${{ hashFiles('mix.lock') }}-1 + path: _build - uses: erlef/setup-beam@v1 with: elixir-version: 1.15.x @@ -16,81 +20,42 @@ jobs: - run: mix deps.get - run: mix credo --strict - # dialyzer: - # runs-on: ${{ matrix.os || 'ubuntu-20.04' }} - - # steps: - # - uses: actions/checkout@v2 - # - uses: actions/cache@v2 - # with: - # key: ${{ github.job }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('mix.lock') }}-1 - # path: _build - # - uses: erlef/setup-beam@v1 - # with: - # elixir-version: ${{ matrix.elixir }} - # otp-version: ${{ matrix.otp }} - # - run: mix deps.get - # - run: mix dialyzer --halt-exit-status - - # strategy: - # matrix: - # include: - # - elixir: 1.12.x - # otp: 24.x - - # - elixir: 1.12.x - # otp: 25.x - - # - elixir: 1.12.x - # otp: 26.x - - # - elixir: v1.13.x - # otp: 24.x - - # - elixir: v1.13.x - # otp: 25.x + dialyzer: + runs-on: ${{ matrix.os || 'ubuntu-20.04' }} - # - elixir: v1.13.x - # otp: 26.x - - # - elixir: v1.14.x - # otp: 24.x - - # - elixir: v1.14.x - # otp: 25.x - - # - elixir: v1.14.x - # otp: 26.x - - # - elixir: v1.15.x - # otp: 24.x - - # - elixir: v1.15.x - # otp: 25.x - - # - elixir: v1.15.x - # otp: 26.x + steps: + - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + key: ${{ github.job }}-${{ hashFiles('mix.lock') }}-1 + path: _build + - uses: erlef/setup-beam@v1 + with: + elixir-version: 1.15.x + otp-version: 26.x + - run: mix deps.get + - run: mix dialyzer --halt-exit-status - # test: - # runs-on: ${{ matrix.os || 'ubuntu-20.04' }} - # steps: - # - uses: actions/checkout@v2 - # - uses: actions/cache@v2 - # with: - # key: ${{ github.job }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('mix.lock') }}-1 - # path: _build - # - uses: erlef/setup-beam@v1 - # with: - # elixir-version: ${{ matrix.elixir }} - # otp-version: ${{ matrix.otp }} - # - run: mix deps.get - # - run: mix test - - # strategy: - # matrix: - # include: - # - elixir: 1.12.x - # otp: 24.x + test: + runs-on: ${{ matrix.os || 'ubuntu-20.04' }} + steps: + - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + key: ${{ github.job }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('mix.lock') }}-1 + path: _build + - uses: erlef/setup-beam@v1 + with: + elixir-version: ${{ matrix.elixir }} + otp-version: ${{ matrix.otp }} + - run: mix deps.get + - run: mix test + strategy: + matrix: + include: + - elixir: 1.11.x + otp: 21.x + os: ubuntu-20.04 # - elixir: 1.12.x # otp: 25.x