-
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 #75 from nimblehq/release/2.2.0
Release/2.2.0
- Loading branch information
Showing
29 changed files
with
342 additions
and
61 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
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
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
69 changes: 69 additions & 0 deletions
69
.github/workflows/test_live_variant_on_custom_liveview_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,69 @@ | ||
name: "Test Live variant on custom LiveView project" | ||
|
||
on: push | ||
|
||
env: | ||
OTP_VERSION: 23.1.5 | ||
ELIXIR_VERSION: 1.11.3 | ||
PHOENIX_VERSION: 1.5.7 | ||
NODE_VERSION: 14 | ||
|
||
jobs: | ||
unit_test: | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
db: | ||
image: postgres:12.3 | ||
ports: ['5432:5432'] | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: actions/setup-elixir@v1 | ||
with: | ||
otp-version: ${{ env.OTP_VERSION }} | ||
elixir-version: ${{ env.ELIXIR_VERSION }} | ||
|
||
- uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: ${{ env.NODE_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: 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 | ||
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*') }} | ||
restore-keys: | | ||
${{ runner.os }}-npm-packages- | ||
- uses: nimblehq/elixir-templates@composite_1.1 | ||
with: | ||
new_project_options: '--live --module=CustomModule --app=custom_app' | ||
variant: 'live' |
69 changes: 69 additions & 0 deletions
69
.github/workflows/test_live_variant_on_standard_liveview_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,69 @@ | ||
name: "Test Live variant on standard LiveView project" | ||
|
||
on: push | ||
|
||
env: | ||
OTP_VERSION: 23.1.5 | ||
ELIXIR_VERSION: 1.11.3 | ||
PHOENIX_VERSION: 1.5.7 | ||
NODE_VERSION: 14 | ||
|
||
jobs: | ||
unit_test: | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
db: | ||
image: postgres:12.3 | ||
ports: ['5432:5432'] | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: actions/setup-elixir@v1 | ||
with: | ||
otp-version: ${{ env.OTP_VERSION }} | ||
elixir-version: ${{ env.ELIXIR_VERSION }} | ||
|
||
- uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: ${{ env.NODE_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: 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 | ||
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*') }} | ||
restore-keys: | | ||
${{ runner.os }}-npm-packages- | ||
- uses: nimblehq/elixir-templates@composite_1.1 | ||
with: | ||
new_project_options: '--live' | ||
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: "Test Release version" | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'release/**' | ||
|
||
env: | ||
OTP_VERSION: 23.1.5 | ||
ELIXIR_VERSION: 1.11.3 | ||
PHOENIX_VERSION: 1.5.7 | ||
|
||
jobs: | ||
release_version_test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: actions/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: Install Dependencies | ||
run: mix deps.get | ||
|
||
- name: Install Phoenix ${{ env.PHOENIX_VERSION }} | ||
run: make install_phoenix PHOENIX_VERSION=${{ env.PHOENIX_VERSION }} | ||
|
||
- name: Run Tests | ||
run: mix test --only release_version | ||
env: | ||
MIX_ENV: test |
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
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
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
erlang 23.1.4 | ||
elixir 1.11.2-otp-23 | ||
erlang 23.1.5 | ||
elixir 1.11.3-otp-23 |
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
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
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
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
Oops, something went wrong.