Skip to content

Commit

Permalink
Merge pull request #98 from nimblehq/release/3.0.0
Browse files Browse the repository at this point in the history
Release/3.0.0
  • Loading branch information
andyduong1920 authored Apr 16, 2021
2 parents 95e6db4 + 2200d8f commit 7d9a367
Show file tree
Hide file tree
Showing 119 changed files with 2,187 additions and 912 deletions.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "Bug Report"
about: "You found something that is not working. Report it so that it can be fixed. 👷‍"
title: "Fix: "
labels: "type : bug"
---

## Issue

Describe the issue you are facing. Show us the implementation: screenshots, gif, etc.

## Expected

Describe what should be the correct behaviour.

## Steps to reproduce

1.
2.
3.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: "Feature"
about: "Open a feature issue to add new functionalities."
title: "Add "
labels: "type : feature"
---

## Why

Describe the big picture of the feature and why it's needed.

## Who Benefits?

Describe who will be the beneficiaries e.g. everyone, clients...
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/rfc_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: "Request For Comments (RFC)"
about: "You have an idea on how to improve the template. Propose your idea so that the team can provide feedback."
title: "RFC: "
labels: "type : rfa"
---

## Issue

Describe the issue from the template or generated project currently facing. Provide as much content as possible.

## Solution

Describe the solution you are prescribing for the issue.

## Who Benefits?

Describe who will be the beneficiaries e.g. everyone, clients...

## What's Next?

Provide an actionable list of things that must happen in order to implement the solution:

- [ ]
- [ ]
- [ ]

Using a poll is encouraged to gather feedback on the RFA 👉 Use this tool: https://gh-polls.com/
9 changes: 7 additions & 2 deletions .github/workflows/publish_to_hex_pm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@ on:
workflow_dispatch:

env:
OTP_VERSION: 23.2.1
ELIXIR_VERSION: 1.11.3
OTP_VERSION: 23.3
ELIXIR_VERSION: 1.11.4

jobs:
publish:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
with:
ref: ${{ github.event.workflow_run.head_branch || github.ref }}
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/test_api_variant_on_custom_api_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: "Test API variant on custom API project"
on: push

env:
OTP_VERSION: 23.2.1
ELIXIR_VERSION: 1.11.3
OTP_VERSION: 23.3
ELIXIR_VERSION: 1.11.4
PHOENIX_VERSION: 1.5.7

jobs:
Expand All @@ -24,6 +24,11 @@ jobs:
--health-retries 5
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
Expand All @@ -43,7 +48,7 @@ jobs:
restore-keys: |
${{ runner.os }}-mix-
- uses: nimblehq/elixir-templates@composite_1.1
- uses: nimblehq/elixir-templates@composite_1.4
with:
new_project_options: '--no-html --no-webpack --module=CustomModule --app=custom_app'
variant: 'api'
11 changes: 8 additions & 3 deletions .github/workflows/test_api_variant_on_standard_api_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: "Test API variant on standard API project"
on: push

env:
OTP_VERSION: 23.2.1
ELIXIR_VERSION: 1.11.3
OTP_VERSION: 23.3
ELIXIR_VERSION: 1.11.4
PHOENIX_VERSION: 1.5.7

jobs:
Expand All @@ -24,6 +24,11 @@ jobs:
--health-retries 5
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
Expand All @@ -43,7 +48,7 @@ jobs:
restore-keys: |
${{ runner.os }}-mix-
- uses: nimblehq/elixir-templates@composite_1.1
- uses: nimblehq/elixir-templates@composite_1.4
with:
new_project_options: '--no-html --no-webpack'
variant: 'api'
25 changes: 12 additions & 13 deletions .github/workflows/test_live_variant_on_custom_liveview_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: "Test Live variant on custom LiveView project"
on: push

env:
OTP_VERSION: 23.2.1
ELIXIR_VERSION: 1.11.3
OTP_VERSION: 23.3
ELIXIR_VERSION: 1.11.4
PHOENIX_VERSION: 1.5.7
NODE_VERSION: 14

Expand All @@ -25,6 +25,11 @@ jobs:
--health-retries 5
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
Expand All @@ -34,7 +39,7 @@ jobs:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}

- uses: actions/setup-node@v2-beta
- uses: actions/setup-node@v2.1.5
with:
node-version: ${{ env.NODE_VERSION }}

Expand All @@ -47,23 +52,17 @@ jobs:
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=yarn_cache_dir::$(yarn cache dir)"
- name: npm packages cache
- name: Cache Node npm
uses: actions/cache@v2
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.yarn_cache_dir }}
**/yarn.lock
**/node_modules
key: ${{ runner.os }}-npm-packages-${{ hashFiles('**/package.json*') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-packages-
${{ runner.os }}-node-
- uses: nimblehq/elixir-templates@composite_1.1
- uses: nimblehq/elixir-templates@composite_1.4
with:
new_project_options: '--live --module=CustomModule --app=custom_app'
variant: 'live'
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: "Test Live variant on standard LiveView project"
on: push

env:
OTP_VERSION: 23.2.1
ELIXIR_VERSION: 1.11.3
OTP_VERSION: 23.3
ELIXIR_VERSION: 1.11.4
PHOENIX_VERSION: 1.5.7
NODE_VERSION: 14

Expand All @@ -25,6 +25,11 @@ jobs:
--health-retries 5
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
Expand All @@ -34,7 +39,7 @@ jobs:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}

- uses: actions/setup-node@v2-beta
- uses: actions/setup-node@v2.1.5
with:
node-version: ${{ env.NODE_VERSION }}

Expand All @@ -47,23 +52,17 @@ jobs:
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=yarn_cache_dir::$(yarn cache dir)"
- name: npm packages cache
- name: Cache Node npm
uses: actions/cache@v2
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.yarn_cache_dir }}
**/yarn.lock
**/node_modules
key: ${{ runner.os }}-npm-packages-${{ hashFiles('**/package.json*') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-packages-
${{ runner.os }}-node-
- uses: nimblehq/elixir-templates@composite_1.1
- uses: nimblehq/elixir-templates@composite_1.4
with:
new_project_options: '--live'
variant: 'live'
55 changes: 55 additions & 0 deletions .github/workflows/test_mix_variant_on_custom_mix_project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: "Test Mix variant on custom Mix project"

on: push

env:
OTP_VERSION: 23.3
ELIXIR_VERSION: 1.11.4
MIX_ENV: test

jobs:
unit_test:
runs-on: ubuntu-latest

steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- uses: erlef/setup-elixir@v1
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}

- name: Cache Elixir build
uses: actions/cache@v2
with:
path: |
_build
deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-
- name: Create Mix project
run: make create_mix_project PROJECT_DIRECTORY=sample_project OPTIONS="--module=CustomModule --app=custom_app"

- name: Apply Mix template
run: make apply_mix_template PROJECT_DIRECTORY=sample_project

- name: Install Elixir Dependencies
run: cd sample_project && mix deps.get

- name: Compile dependencies
run: cd sample_project && mix compile --warnings-as-errors --all-warnings

- name: Run mix codebase
run: cd sample_project && mix codebase

- name: Run mix test
run: cd sample_project && mix test
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: "Test Mix variant on custom Mix project with --sup option"

on: push

env:
OTP_VERSION: 23.3
ELIXIR_VERSION: 1.11.4
MIX_ENV: test

jobs:
unit_test:
runs-on: ubuntu-latest

steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- uses: erlef/setup-elixir@v1
with:
otp-version: ${{ env.OTP_VERSION }}
elixir-version: ${{ env.ELIXIR_VERSION }}

- name: Cache Elixir build
uses: actions/cache@v2
with:
path: |
_build
deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-
- name: Create Mix project
run: make create_mix_project PROJECT_DIRECTORY=sample_project OPTIONS="--module=CustomModule --app=custom_app --sup"

- name: Apply Mix template
run: make apply_mix_template PROJECT_DIRECTORY=sample_project

- name: Install Elixir Dependencies
run: cd sample_project && mix deps.get

- name: Compile dependencies
run: cd sample_project && mix compile --warnings-as-errors --all-warnings

- name: Run mix codebase
run: cd sample_project && mix codebase

- name: Run mix test
run: cd sample_project && mix test
Loading

0 comments on commit 7d9a367

Please sign in to comment.