diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 1a84de79..32acf1c1 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -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: @@ -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}})