Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ jobs:
- run: mix credo --strict --all
- run: mix dialyzer

test_examples:
test_plug_examples:
runs-on: ubuntu-latest
name: Test Sample Applications
name: Test Sample Plug Application
env:
MIX_ENV: test
steps:
Expand All @@ -60,6 +60,30 @@ jobs:
working-directory: ./examples/plug_app
run: mix do deps.get, test

test_phoenix_examples:
runs-on: ubuntu-latest
name: Test Sample Phoenix Application
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: 26
elixir-version: 1.16
- uses: actions/cache@v2
with:
key: |
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-phoenix-build
restore-keys: |
${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-phoenix-build
path: |
_build

- name: run Phoenix sample app tests
working-directory: ./examples/phoenix_app
run: mix do deps.get, test, dialyzer

test:
runs-on: ubuntu-20.04
name: Test (OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}})
Expand Down
Loading