Skip to content

Updated navigation bar to include user menu with options: #252

Updated navigation bar to include user menu with options:

Updated navigation bar to include user menu with options: #252

Workflow file for this run

name: Vachan
on:
workflow_call:
workflow_dispatch:
push:
branches: [main]
tags:
- "prod.*.*"
pull_request:
branches: [main, dev, release, staging]
jobs:
password_check:
runs-on: ubuntu-latest
steps:
- name: Check out HEAD
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Check for password
uses: AlicanAkkus/[email protected]
test:
needs: [password_check]
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_DB: phoenix_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-elixir@v1
with:
elixir-version: "1.15"
otp-version: "26"
- name: Install Dependencies
run: mix deps.get
- name: Set up database
env:
MIX_ENV: test
PGHOST: localhost
PGUSER: postgres
PGPASSWORD: postgres
run: |
mix ash_postgres.create
mix ash_postgres.migrate
- name: Run tests
env:
MIX_ENV: test
PGHOST: localhost
PGUSER: postgres
PGPASSWORD: postgres
run: mix test
deploy:
needs: [password_check, test]
name: Deploy app
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: superfly/flyctl-actions/setup-flyctl@master
- name: deploying to fly.io
if: ${{ github.ref_name == 'main' }}
run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}