-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
19 additions
and
115 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 |
---|---|---|
|
@@ -19,172 +19,72 @@ jobs: | |
id: ls | ||
run: echo "packages=[$(ls -d packages/* | sed 's/[^[:alnum:]]/\\&/g' | sed 's/.*/"&",/' | tr -d '\n' | sed '$s/,$//')]" >> $GITHUB_OUTPUT | ||
|
||
cache-modules: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/[email protected] | ||
name: Install pnpm | ||
id: pnpm-install | ||
with: | ||
version: latest | ||
standalone: true | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
shell: bash | ||
run: | | ||
pnpm store path | ||
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: | | ||
${{ steps.pnpm-cache.outputs.STORE_PATH }} | ||
${{ '**/node_modules' }} | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm- | ||
- name: Install Dependencies | ||
shell: bash | ||
run: pnpm i | ||
|
||
- name: Prune Store | ||
shell: bash | ||
run: pnpm store prune | ||
|
||
Lint: | ||
runs-on: ubuntu-latest | ||
needs: [collection-packages, cache-modules] | ||
needs: [collection-packages] | ||
strategy: | ||
matrix: | ||
package: ${{ fromJSON(needs.collection-packages.outputs.packages) }} | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v2.4.0 | ||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
id: pnpm-install | ||
with: | ||
version: latest | ||
standalone: true | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
shell: bash | ||
run: | | ||
pnpm store path | ||
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- name: Restore cached Modules | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: | | ||
${{ steps.pnpm-cache.outputs.STORE_PATH }} | ||
${{ '**/node_modules' }} | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm- | ||
- name: Install Dependencies | ||
shell: bash | ||
run: pnpm i | ||
run_install: true | ||
|
||
- name: Lint | ||
run: pnpm run -C ${{ matrix.package }} lint:check | ||
run: pnpm --filter @awesome-alpine/${{matrix.package}} lint:check | ||
|
||
- name: Type Check | ||
run: pnpm run -C ${{ matrix.package }} lint:types | ||
run: pnpm --filter @awesome-alpine/${{matrix.package}} lint:types | ||
continue-on-error: true # AlpineTS is still not fully typed | ||
|
||
Test: | ||
runs-on: ubuntu-latest | ||
needs: [collection-packages, cache-modules] | ||
needs: [collection-packages] | ||
strategy: | ||
matrix: | ||
package: ${{ fromJSON(needs.collection-packages.outputs.packages) }} | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v2.4.0 | ||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
id: pnpm-install | ||
with: | ||
version: latest | ||
standalone: true | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
shell: bash | ||
run: | | ||
pnpm store path | ||
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- name: Restore cached Modules | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: | | ||
${{ steps.pnpm-cache.outputs.STORE_PATH }} | ||
${{ '**/node_modules' }} | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm- | ||
- name: Install Dependencies | ||
shell: bash | ||
run: pnpm i | ||
run_install: true | ||
|
||
- name: Test | ||
run: pnpm run -C ${{ matrix.package }} test --run --reporter=verbose | ||
run: pnpm --filter @awesome-alpine/${{matrix.package}} test --run --reporter=verbose | ||
|
||
Build: | ||
runs-on: ubuntu-latest | ||
needs: [collection-packages, cache-modules] | ||
needs: [collection-packages] | ||
strategy: | ||
matrix: | ||
package: ${{ fromJSON(needs.collection-packages.outputs.packages) }} | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/action-setup@v2.4.0 | ||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
id: pnpm-install | ||
with: | ||
version: latest | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
shell: bash | ||
run: | | ||
pnpm store path | ||
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- name: Restore cached Modules | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: | | ||
${{ steps.pnpm-cache.outputs.STORE_PATH }} | ||
${{ '**/node_modules' }} | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm- | ||
- name: Install Dependencies | ||
shell: bash | ||
run: pnpm i | ||
standalone: true | ||
run_install: true | ||
|
||
- name: Build Package | ||
run: pnpm run -C ${{ matrix.package }} -r build | ||
run: pnpm --filter @awesome-alpine/${{matrix.package}} -r build | ||
|
||
check-success: | ||
runs-on: ubuntu-latest | ||
|
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,5 +1,5 @@ | ||
{ | ||
"name": "alpinets", | ||
"name": "@alpinets/alpinets", | ||
"version": "0.0.1", | ||
"description": "The rugged, minimal TypeScript framework", | ||
"author": "Eric Kwoka <[email protected]> (https://thekwoka.net/)", | ||
|
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