-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from nimblehq/release/3.0.0
Release/3.0.0
- Loading branch information
Showing
119 changed files
with
2,187 additions
and
912 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,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. |
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,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... |
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,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/ |
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 |
---|---|---|
|
@@ -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 }} | ||
|
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 |
---|---|---|
|
@@ -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: | ||
|
@@ -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 }} | ||
|
@@ -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' |
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 |
---|---|---|
|
@@ -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: | ||
|
@@ -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 }} | ||
|
@@ -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' |
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 |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 }} | ||
|
@@ -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 }} | ||
|
||
|
@@ -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' |
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 |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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 }} | ||
|
@@ -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 }} | ||
|
||
|
@@ -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
55
.github/workflows/test_mix_variant_on_custom_mix_project.yml
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,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 |
55 changes: 55 additions & 0 deletions
55
.github/workflows/test_mix_variant_on_custom_mix_project_with_supervision.yml
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,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 |
Oops, something went wrong.