Skip to content

Commit

Permalink
build(CI/CD): Added book_my_gigs_test.yml 'run-tests' job for Github …
Browse files Browse the repository at this point in the history
…Actions
  • Loading branch information
Gabrielparizet committed Jun 5, 2024
1 parent 77f89e6 commit bb0dd55
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/book_my_gigs_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# book_my_gigs_test/.github/workflows/phoenix_test.yml
name: Elixir CI

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
run-tests:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
ports: ["5432:5432"]
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1
with:
elixir-version: 1.14.0
otp-version: 26.1.2
- run: mix deps.get
- run: mix deps.compile
- run: cd assets && yarn install --frozen-lockfile
- run: mix test
env:
DB_PASSWORD: postgres
DB_HOST: postgres

0 comments on commit bb0dd55

Please sign in to comment.