Skip to content

Commit

Permalink
Project update. [p][robotic]
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswrks committed Sep 21, 2023
1 parent c5c09e5 commit 0e0b5ab
Show file tree
Hide file tree
Showing 32 changed files with 318 additions and 202 deletions.
2 changes: 1 addition & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Wed, Sep 20, 2023, 10:15:04 PM EDT.
# Last generated Thu, Sep 21, 2023, 3:21:17 AM EDT.

[production]
last 1 chrome versions
Expand Down
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Wed, Sep 20, 2023, 10:15:04 PM EDT.
# Last generated Thu, Sep 21, 2023, 3:21:16 AM EDT.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Wed, Sep 20, 2023, 10:15:04 PM EDT.
# Last generated Thu, Sep 21, 2023, 3:21:16 AM EDT.

# Default

Expand Down
52 changes: 26 additions & 26 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,35 @@
version: 2

registries:
registry-npmjs-org:
type: npm-registry
url: https://registry.npmjs.org
token: ${{secrets.USER_NPM_TOKEN}}
registry-npmjs-org:
type: npm-registry
url: https://registry.npmjs.org
token: ${{secrets.USER_NPM_TOKEN || ''}}

updates:
- package-ecosystem: npm
directory: /
registries:
- registry-npmjs-org
labels:
- suggestion
- robotic
schedule:
interval: weekly
open-pull-requests-limit: 5
allow:
- dependency-type: production
- package-ecosystem: npm
directory: /
registries:
- registry-npmjs-org
labels:
- suggestion
- robotic
schedule:
interval: weekly
open-pull-requests-limit: 5
allow:
- dependency-type: production

- package-ecosystem: github-actions
directory: /
labels:
- suggestion
- robotic
schedule:
interval: weekly
open-pull-requests-limit: 5
allow:
- dependency-type: all
- package-ecosystem: github-actions
directory: /
labels:
- suggestion
- robotic
schedule:
interval: weekly
open-pull-requests-limit: 5
allow:
- dependency-type: all
#
##
# Customizations
Expand Down
129 changes: 65 additions & 64 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,75 +12,76 @@ name: 'CI' # <https://o5p.me/QsaIUU>
run-name: 'CI by @${{github.actor}}'

on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
workflow_dispatch:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
workflow_dispatch:

concurrency:
cancel-in-progress: true
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
group: ${{github.workflow}}-${{github.ref}}

jobs:
deployment:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [20.5.1]

runs-on: ${{matrix.os}}
environment: ci # CI environment.

permissions: # GitHub token permissions.
contents: read # Mininum requirements.

env: # Supplied by permissions above.
USER_GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

# Supplied by org-wide action secrets.
USER_NPM_TOKEN: ${{secrets.USER_NPM_TOKEN}}

# Supplied by repo environment secrets.
# Only available for repos using a Dotenv Vault.
USER_DOTENV_KEY_MAIN: ${{secrets.USER_DOTENV_KEY_MAIN || ''}}
USER_DOTENV_KEY_CI: ${{secrets.USER_DOTENV_KEY_CI || ''}}

steps:
- name: Checkout Project Repo
uses: actions/checkout@v3

- name: Setup Node v${{matrix.node-version}}
uses: actions/setup-node@v3
with:
node-version: ${{matrix.node-version}}
cache: npm # Caches NPM dependencies.

- name: Parse Project Package JSON
shell: bash
run: |
echo 'PKG_JSON='"$(jq -c . ./package.json)" >> $GITHUB_ENV;
echo 'PKG_JSON_C10N='"$(jq -c '.config | .c10n | .["&"]' ./package.json)" >> $GITHUB_ENV;
- name: Install Madrun Dependency
shell: bash
run: |
npm install -g @clevercanyon/madrun;
- name: Install Project
shell: bash
run: |
madrun install project --mode=ci;
- name: Run Project Tests
if: fromJson(env.PKG_JSON_C10N).build.appType
shell: bash
run: |
madrun tests --mode=ci;
deployment:
if: github.repository_owner == 'clevercanyon'

strategy:
matrix:
os: [ubuntu-latest]
node-version: [20.5.1]

runs-on: ${{matrix.os}}
environment: ci # CI environment.

permissions: # GitHub token permissions.
contents: read # Mininum requirements.

env: # Supplied by permissions above.
USER_GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

# Supplied by org-wide action secrets.
USER_NPM_TOKEN: ${{secrets.USER_NPM_TOKEN}}

# Supplied by repo environment secrets.
# Only available for repos using a Dotenv Vault.
USER_DOTENV_KEY_MAIN: ${{secrets.USER_DOTENV_KEY_MAIN || ''}}
USER_DOTENV_KEY_CI: ${{secrets.USER_DOTENV_KEY_CI || ''}}

steps:
- name: Checkout Project Repo
uses: actions/checkout@v4

- name: Setup Node v${{matrix.node-version}}
uses: actions/setup-node@v3
with:
node-version: ${{matrix.node-version}}
cache: npm # Caches NPM dependencies.

- name: Parse Project Package JSON
shell: bash
run: |
echo 'PKG_JSON='"$(jq -c . ./package.json)" >> $GITHUB_ENV;
echo 'PKG_JSON_C10N='"$(jq -c '.config | .c10n | .["&"]' ./package.json)" >> $GITHUB_ENV;
- name: Install Madrun Dependency
shell: bash
run: |
npm install -g @clevercanyon/madrun;
- name: Install Project
shell: bash
run: |
madrun install project --mode=ci;
- name: Run Project Tests
if: fromJson(env.PKG_JSON_C10N).build.appType
shell: bash
run: |
madrun tests --mode=ci;
#
##
# Customizations
# <custom:start>
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Wed, Sep 20, 2023, 10:15:04 PM EDT.
# Last generated Thu, Sep 21, 2023, 3:21:16 AM EDT.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# Generated data.
# <generated:start>

# Last generated Wed, Sep 20, 2023, 10:15:04 PM EDT.
# Last generated Thu, Sep 21, 2023, 3:21:16 AM EDT.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Wed, Sep 20, 2023, 10:15:04 PM EDT.
# Last generated Thu, Sep 21, 2023, 3:21:16 AM EDT.

# Packages

Expand Down
2 changes: 1 addition & 1 deletion .rehyperc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { $obj } from './node_modules/@clevercanyon/utilities/dist/index.js';
* <custom:start> */

export default await (async () => {
return $obj.mergeDeep({}, await baseConfig(), {});
return $obj.mergeDeep({}, await baseConfig(), {});
})();

/* </custom:end> */
2 changes: 1 addition & 1 deletion .remarkrc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { $obj } from './node_modules/@clevercanyon/utilities/dist/index.js';
* <custom:start> */

export default await (async () => {
return $obj.mergeDeep({}, await baseConfig(), {});
return $obj.mergeDeep({}, await baseConfig(), {});
})();

/* </custom:end> */
Loading

0 comments on commit 0e0b5ab

Please sign in to comment.