neiam /action-setup-beam
action-setup-beam
public · Issues · Pulls · Labels · Forks · Compare · Actions queued
⭐
Log in to mark this repository.
Add Phoenix example to README
b52a81a · Jonathan Clem · 2019-08-28 21:59
Files changed
modified
README.md
+31
−0
@@ -29,6 +29,7 @@ jobs:
| 29 | 29 | test: |
| 30 | 30 | runs-on: ubuntu-latest |
| 31 | 31 | steps: |
| 32 | + - uses: actions/checkout@v1.0.0 | |
| 32 | 33 | - uses: actions/setup-elixir@v1.0.0 |
| 33 | 34 | with: |
| 34 | 35 | otp-version: 22.x |
@@ -51,6 +52,7 @@ jobs:
| 51 | 52 | otp: [20.x, 21.x, 22.x] |
| 52 | 53 | elixir: [1.8.x, 1.9.x] |
| 53 | 54 | steps: |
| 55 | + - uses: actions/checkout@v1.0.0 | |
| 54 | 56 | - uses: actions/setup-elixir@v1.0.0 |
| 55 | 57 | with: |
| 56 | 58 | otp-version: ${{matrix.otp}} |
@@ -59,6 +61,35 @@ jobs:
| 59 | 61 | - run: mix test |
| 60 | 62 | ``` |
| 61 | 63 | |
| 64 | +### Phoenix example | |
| 65 | + | |
| 66 | +```yaml | |
| 67 | +on: push | |
| 68 | + | |
| 69 | +jobs: | |
| 70 | + test: | |
| 71 | + runs-on: ubuntu-latest | |
| 72 | + | |
| 73 | + services: | |
| 74 | + db: | |
| 75 | + image: postgres:11 | |
| 76 | + ports: ['5432:5432'] | |
| 77 | + options: >- | |
| 78 | + --health-cmd pg_isready | |
| 79 | + --health-interval 10s | |
| 80 | + --health-timeout 5s | |
| 81 | + --health-retries 5 | |
| 82 | + | |
| 83 | + steps: | |
| 84 | + - uses: actions/checkout@v1.0.0 | |
| 85 | + - uses: actions/setup-elixir@1.0.0 | |
| 86 | + with: | |
| 87 | + otp-version: 22.x | |
| 88 | + elixir-version: 1.9.x | |
| 89 | + - run: mix deps.get | |
| 90 | + - run: mix test | |
| 91 | +``` | |
| 92 | + | |
| 62 | 93 | ## License |
| 63 | 94 | |
| 64 | 95 | The scripts and documentation in this project are released under the [MIT license](LICENSE.md). |
Parents: 78abf8c