-
Notifications
You must be signed in to change notification settings - Fork 7
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
1 parent
a0714c9
commit 1a5691a
Showing
8 changed files
with
302 additions
and
316 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 |
---|---|---|
@@ -1,30 +1,43 @@ | ||
# name: 'Angular' | ||
# on: | ||
# push: | ||
# branches: | ||
# - '*' | ||
# paths: | ||
# - 'angular/**' | ||
# jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# - name: Setup pnpm | ||
# uses: pnpm/action-setup@v2 | ||
# with: | ||
# version: 8 | ||
# - name: Setup Node | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version-file: .nvmrc | ||
# cache: pnpm | ||
# cache-dependency-path: pnpm-lock.yaml | ||
# - name: Install and Build | ||
# run: | | ||
# pnpm install | ||
# pnpm run build:tokens | ||
# pnpm run build:core | ||
# pnpm run build:angular | ||
# pnpm run build:angular-formly | ||
name: Angular | ||
|
||
on: | ||
push: | ||
branches: | ||
- "*" | ||
# paths: | ||
# - "angular/**" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
registry-url: https://registry.npmjs.org | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: Get pnpm store directory | ||
shell: bash | ||
run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install | ||
run: pnpm install | ||
- name: Build | ||
run: | | ||
pnpm run build:tokens | ||
pnpm run build:core | ||
pnpm run build:angular | ||
pnpm run build:angular-formly |
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,107 +1,109 @@ | ||
# name: 'Core' | ||
# on: | ||
# push: | ||
# branches: | ||
# - '*' | ||
# paths: | ||
# - 'core/**' | ||
# jobs: | ||
# build: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# - name: Setup pnpm | ||
# uses: pnpm/action-setup@v2 | ||
# with: | ||
# version: 8 | ||
# - name: Setup Node | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version-file: .nvmrc | ||
# cache: pnpm | ||
# cache-dependency-path: pnpm-lock.yaml | ||
# - name: Install and Build | ||
# run: | | ||
# pnpm install | ||
# pnpm run build:tokens | ||
# pnpm run build:core | ||
# prettier: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# - name: Setup pnpm | ||
# uses: pnpm/action-setup@v2 | ||
# with: | ||
# version: 8 | ||
# - name: Setup Node | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version-file: .nvmrc | ||
# cache: pnpm | ||
# cache-dependency-path: pnpm-lock.yaml | ||
# - name: Install and Check | ||
# run: | | ||
# pnpm install | ||
# pnpm --filter @haiilo/catalyst run prettier:check | ||
# eslint: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# - name: Setup pnpm | ||
# uses: pnpm/action-setup@v2 | ||
# with: | ||
# version: 8 | ||
# - name: Setup Node | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version-file: .nvmrc | ||
# cache: pnpm | ||
# cache-dependency-path: pnpm-lock.yaml | ||
# - name: Install and Lint | ||
# run: | | ||
# pnpm install | ||
# pnpm --filter @haiilo/catalyst run lint | ||
# stylelint: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# - name: Setup pnpm | ||
# uses: pnpm/action-setup@v2 | ||
# with: | ||
# version: 8 | ||
# - name: Setup Node | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version-file: .nvmrc | ||
# cache: pnpm | ||
# cache-dependency-path: pnpm-lock.yaml | ||
# - name: Install and Lint | ||
# run: | | ||
# pnpm install | ||
# pnpm --filter @haiilo/catalyst run lint:style | ||
# test: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# - name: Setup pnpm | ||
# uses: pnpm/action-setup@v2 | ||
# with: | ||
# version: 8 | ||
# - name: Setup Node | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version-file: .nvmrc | ||
# cache: pnpm | ||
# cache-dependency-path: pnpm-lock.yaml | ||
# - name: Install Chrome | ||
# run: sudo apt-get install -y google-chrome-stable | ||
# - name: Install and Test | ||
# run: | | ||
# pnpm install | ||
# pnpm run build:tokens | ||
# pnpm --filter @haiilo/catalyst run test | ||
name: "Core" | ||
|
||
on: | ||
push: | ||
branches: | ||
- "*" | ||
# paths: | ||
# - "core/**" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: pnpm | ||
cache-dependency-path: pnpm-lock.yaml | ||
- name: Install and Build | ||
run: | | ||
pnpm install | ||
pnpm run build:tokens | ||
pnpm run build:core | ||
prettier: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: pnpm | ||
cache-dependency-path: pnpm-lock.yaml | ||
- name: Install and Check | ||
run: | | ||
pnpm install | ||
pnpm --filter @haiilo/catalyst run prettier:check | ||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: pnpm | ||
cache-dependency-path: pnpm-lock.yaml | ||
- name: Install and Lint | ||
run: | | ||
pnpm install | ||
pnpm --filter @haiilo/catalyst run lint | ||
stylelint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: pnpm | ||
cache-dependency-path: pnpm-lock.yaml | ||
- name: Install and Lint | ||
run: | | ||
pnpm install | ||
pnpm --filter @haiilo/catalyst run lint:style | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: pnpm | ||
cache-dependency-path: pnpm-lock.yaml | ||
- name: Install Chrome | ||
run: sudo apt-get install -y google-chrome-stable | ||
- name: Install and Test | ||
run: | | ||
pnpm install | ||
pnpm run build:tokens | ||
pnpm --filter @haiilo/catalyst run 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,44 @@ | ||
# name: 'Deploy' | ||
# on: | ||
# push: | ||
# branches: | ||
# - main | ||
# paths: | ||
# - 'core/**' | ||
# jobs: | ||
# gh-pages: | ||
# concurrency: ci-${{ github.ref }} | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# - name: Setup pnpm | ||
# uses: pnpm/action-setup@v2 | ||
# with: | ||
# version: 8 | ||
# - name: Setup Node | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version-file: .nvmrc | ||
# cache: pnpm | ||
# cache-dependency-path: pnpm-lock.yaml | ||
# - name: Install and Build | ||
# run: | | ||
# pnpm install | ||
# pnpm run build:tokens | ||
# pnpm run build:core | ||
# - name: Find and Replace | ||
# uses: jacobtomlinson/gha-find-replace@v2 | ||
# with: | ||
# find: '/build/' | ||
# replace: 'https://haiilo.github.io/catalyst/build/' | ||
# regex: false | ||
# include: core/www/index.html | ||
# - name: Deploy | ||
# uses: JamesIves/[email protected] | ||
# with: | ||
# branch: gh-pages | ||
# folder: core/www | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
# paths: | ||
# - "tokens/**" | ||
# - "core/**" | ||
|
||
jobs: | ||
gh-pages: | ||
concurrency: ci-${{ github.ref }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: pnpm | ||
cache-dependency-path: pnpm-lock.yaml | ||
- name: Install and Build | ||
run: | | ||
pnpm install | ||
pnpm run build:tokens | ||
pnpm run build:core | ||
- name: Find and Replace | ||
uses: jacobtomlinson/gha-find-replace@v2 | ||
with: | ||
find: "/build/" | ||
replace: "https://haiilo.github.io/catalyst/build/" | ||
regex: false | ||
include: core/www/index.html | ||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: core/www |
Oops, something went wrong.