Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #149 from shahryarjb/master
Browse files Browse the repository at this point in the history
Implement plugins system manager Version 0.0.1
  • Loading branch information
shahryarjb authored Mar 10, 2022
2 parents 670b00d + e72fbfb commit 0061b96
Show file tree
Hide file tree
Showing 103 changed files with 2,567 additions and 690 deletions.
118 changes: 118 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
name: MishkaCms CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
ci:
env:
GITHUB_ACTION: true

strategy:
fail-fast: false
matrix:
include:
- pair:
elixir: '1.13'
otp: '24.2'
postgres: '10.19-alpine'

- pair:
elixir: '1.13.1'
otp: '24.2'
postgres: '13.5-alpine'

- pair:
elixir: '1.13.2'
otp: '24.2'
postgres: '14.1-alpine'

runs-on: ubuntu-latest

services:
postgres:
image: postgres:${{matrix.pair.postgres}}
env:
POSTGRES_DB: mishka_test
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432/tcp

steps:
- uses: actions/checkout@v2

- uses: actions/cache@v2
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{matrix.pair.elixir}}-${{matrix.pair.otp}}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{matrix.pair.elixir}}-${{matrix.pair.otp}}-
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.pair.otp}}
elixir-version: ${{matrix.pair.elixir}}


- name: Elixir and Erlang Dependencies
run: |
mix local.hex --force
mix local.rebar --force
mix archive.install hex phx_new --force
- name: Source Compiling
run: |
mix deps.get
mix deps.compile
mix assets.deploy
- name: Run mix ecto.setup
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:${{job.services.postgres.ports[5432]}}/mishka_test
DATABASE_DEVELOPERT_URL: postgresql://postgres:postgres@localhost:${{job.services.postgres.ports[5432]}}/mishka_developer_tools_test
DATABASE_USER: postgres
DATABASE_PASSWORD: postgres
DATABASE_NAME: mishka_test
DATABASE_HOST: localhost
run: |
mix ecto.drop
mix ecto.create
mix ecto.migrate
- name: Run test with temporary information
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:${{job.services.postgres.ports[5432]}}/mishka_test
DATABASE_DEVELOPERT_URL: postgresql://postgres:postgres@localhost:${{job.services.postgres.ports[5432]}}/mishka_developer_tools_test
DATABASE_USER: postgres
DATABASE_PASSWORD: postgres
DATABASE_NAME: mishka_test
DATABASE_HOST: localhost
SECRET_KEY_BASE_API: qP5c9diga3k115/empFNEEi/fgwXkhArZvpvFaiLqdi3Um1ntPh0P2AkleLzEpzY
SECRET_KEY_BASE_HTML: afY0EvH0QD34GEhkEiXGjDAnxp9lskQjRbMQ1K8v69t3ZzPCK8RU+rbD4K3E3yHa
LIVE_VIEW_SALT: wqSr52l4
TOKEN_JWT_KEY: Exe6Qk6YPWWNmOS7rAtXQfPPngruPtEIivDB1nsXwSk
SECRET_CURRENT_TOKEN_SALT: TestSaltCurrentToken
SECRET_REFRESH_TOKEN_SALT: TestRefreshSaltToken
SECRET_ACCESS_TOKEN_SALT: TestAccessSaltToken
EMAIL_SYSTEM: [email protected]
EMAIL_DOMAIN: test.com
EMAIL_PORT: '587'
EMAIL_SERVER: test.test.com
EMAIL_HOSTNAME: test.test.org
EMAIL_USERNAME: [email protected]
EMAIL_PASSWORD: TestPasswordForEmail
run: |
mix test --trace
81 changes: 0 additions & 81 deletions .github/workflows/codesee-arch-diagram.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ In the near future the features related to the CMS will be explained in forms of
After installing the dependencies above, now you can run the project using the following commands:

```elixir
mix ecto.create # (first you have to define your database information in the config file)
mix ecto.migrate
mix deps.get
mix deps.compile
mix ecto.create # (first you have to define your database information in the config file)
mix ecto.migrate
mix assets.deploy
mix test
mix run apps/mishka_database/priv/repo/seeds.exs # in case you want content and test user to be made, run one time only
Expand Down
4 changes: 2 additions & 2 deletions README_FA.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ https://github.com/shahryarjb
<div dir="ltr">

```elixir
mix ecto.create # اول باید در فایل کانفیگ اطلاعات دیتابیس خود را وارد کنید
mix ecto.migrate
mix deps.get
mix deps.compile
mix ecto.create # اول باید در فایل کانفیگ اطلاعات دیتابیس خود را وارد کنید
mix ecto.migrate
mix assets.deploy
mix test
mix run apps/mishka_database/priv/repo/seeds.exs # در صورتی که می خواهید مطالب و کاربر آزمایشی درست شود. فقط یک بار اجرا شود
Expand Down
Loading

0 comments on commit 0061b96

Please sign in to comment.