Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
abulsayyad123 committed Jul 16, 2023
1 parent 0008dbd commit 480b6e3
Showing 1 changed file with 28 additions and 25 deletions.
53 changes: 28 additions & 25 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,34 +33,37 @@ jobs:
elixir: 1.14.0
otp: 24.3
lint: lint

steps:
- uses: actions/checkout@v2
- name: Set up Elixir
uses: actions/setup-elixir@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- uses: actions/checkout@v2

- uses: erlef/setup-beam@v1
with:
elixir-version: 1.14.0
otp-version: 24.3

- 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 --only test

- name: Install dependencies
run: mix deps.get
- name: Setup Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup test server
run: MIX_ENV=test mix ecto.create
- name: Run Test migration
run: MIX_ENV=test mix ecto.migrate
- name: Run tests
run: mix test
- 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: Setup Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup test server
run: MIX_ENV=test mix ecto.create
- name: Run Test migration
run: MIX_ENV=test mix ecto.migrate
- name: Run tests
run: mix test

deploy:
name: Deploy app
Expand Down

0 comments on commit 480b6e3

Please sign in to comment.