Skip to content

Commit

Permalink
chore: ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fynnfeldpausch committed Oct 17, 2023
1 parent a0714c9 commit 1a5691a
Show file tree
Hide file tree
Showing 8 changed files with 302 additions and 316 deletions.
73 changes: 43 additions & 30 deletions .github/workflows/angular.yml
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
216 changes: 109 additions & 107 deletions .github/workflows/core.yml
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
85 changes: 44 additions & 41 deletions .github/workflows/deploy.yml
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
Loading

0 comments on commit 1a5691a

Please sign in to comment.