Compare commits

...

4 Commits

Author SHA1 Message Date
Jonathan Clem 193749b5aa Remove build cache from Phoenix
Validate Data / validate-data (push) Has been cancelled
2020-07-14 15:44:53 -04:00
Jonathan Clem c79b395ae3 Add better note for POSTGRES_DB in Phoenix workflow 2020-07-14 15:44:44 -04:00
Jonathan Clem 4afa7ab9ef Change name to Phoenix 2020-07-14 15:44:34 -04:00
Jonathan Clem 9d2ef9d746 Add Phoenix starter workflow 2020-07-14 15:40:29 -04:00
2 changed files with 52 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
name: Phoenix
on:
push:
branches: [$default-branch]
pull_request:
branches: [$default-branch]
jobs:
build:
name: Build and test
runs-on: ubuntu-latest
env: {MIX_ENV: test}
services:
postgres:
image: postgres:13
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
# NOTE: Replace "phoenix_test" with your DB name from config/test.exs.
POSTGRES_DB: phoenix_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports: ['5432:5432']
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: actions/setup-elixir@v1
with:
elixir-version: '1.10.3' # Define the elixir version [required]
otp-version: '22.3' # Define the OTP version [required]
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test
+6
View File
@@ -0,0 +1,6 @@
{
"name": "Phoenix",
"description": "Build and test an Elixir Phoenix project.",
"iconName": "phoenix",
"categories": ["Elixir", "Erlang", "Phoenix"]
}