-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(CI/CD): Added book_my_gigs_test.yml 'run-tests' job for Github …
…Actions
- Loading branch information
1 parent
77f89e6
commit bb0dd55
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |