Skip to content

Commit

Permalink
Split up workflows (#2093)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericfennis committed Apr 24, 2024
1 parent df100bd commit ad7ae84
Show file tree
Hide file tree
Showing 18 changed files with 130 additions and 27 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/lucide-angular.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- pnpm-lock.yaml

jobs:
lucide-angular:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -26,5 +26,20 @@ jobs:
- name: Build
run: pnpm --filter lucide-angular build

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3.8.1
with:
node-version: 18
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Test
run: pnpm --filter lucide-angular test
3 changes: 0 additions & 3 deletions .github/workflows/lucide-preact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,5 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm --filter lucide-preact build

- name: Test
run: pnpm --filter lucide-preact test
3 changes: 0 additions & 3 deletions .github/workflows/lucide-react-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,5 @@ jobs:
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm --filter lucide-react-native build

- name: Test
run: pnpm --filter lucide-react-native test
17 changes: 16 additions & 1 deletion .github/workflows/lucide-react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- pnpm-lock.yaml

jobs:
lucide-react:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -28,5 +28,20 @@ jobs:
- name: Build
run: pnpm --filter lucide-react build

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3.8.1
with:
node-version: 18
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Test
run: pnpm --filter lucide-react test
17 changes: 16 additions & 1 deletion .github/workflows/lucide-solid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- pnpm-lock.yaml

jobs:
lucide-solid:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -27,5 +27,20 @@ jobs:
- name: Build
run: pnpm --filter lucide-solid build

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3.8.1
with:
node-version: 18
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Test
run: pnpm --filter lucide-solid test
17 changes: 16 additions & 1 deletion .github/workflows/lucide-svelte.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- pnpm-lock.yaml

jobs:
lucide-svelte:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -27,5 +27,20 @@ jobs:
- name: Build
run: pnpm --filter lucide-svelte build

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3.8.1
with:
node-version: 18
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Test
run: pnpm --filter lucide-svelte test
17 changes: 16 additions & 1 deletion .github/workflows/lucide-vue-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- pnpm-lock.yaml

jobs:
lucide-vue-next:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -27,5 +27,20 @@ jobs:
- name: Build
run: pnpm --filter lucide-vue-next build

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3.8.1
with:
node-version: 18
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Test
run: pnpm --filter lucide-vue-next test
17 changes: 16 additions & 1 deletion .github/workflows/lucide-vue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- pnpm-lock.yaml

jobs:
lucide-vue:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -27,5 +27,20 @@ jobs:
- name: Build
run: pnpm --filter lucide-vue build

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3.8.1
with:
node-version: 18
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Test
run: pnpm --filter lucide-vue test
17 changes: 16 additions & 1 deletion .github/workflows/lucide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- pnpm-lock.yaml

jobs:
lucide:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -27,5 +27,20 @@ jobs:
- name: Build
run: pnpm --filter lucide build

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3.8.1
with:
node-version: 18
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Test
run: pnpm --filter lucide test
6 changes: 4 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ jobs:
with:
files: icons/*
- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v2
- name: Install simple-git (safer and faster than installing all deps)
run: npm install simple-git
run: pnpm install simple-git
- name: Generate annotations
run: node ./scripts/updateContributors.mjs
env:
Expand Down Expand Up @@ -95,8 +96,9 @@ jobs:
body-includes: Added or changed icons

- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v2
- name: Install svgson for code preview (safer and faster than installing all deps)
run: npm install svgson
run: pnpm install svgson

- name: Generate comment markup
run: node ./scripts/generateChangedIconsCommentMarkup.mjs >> comment-markup.md
Expand Down
2 changes: 1 addition & 1 deletion packages/lucide-preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"clean": "rm -rf dist && rm -rf stats && rm -rf ./src/icons/*.js",
"build:icons": "build-icons --output=./src --templateSrc=./scripts/exportTemplate.mjs --renderUniqueKey --withAliases --aliasesFileExtension=.ts --iconFileExtension=.ts --exportFileName=index.ts",
"build:bundles": "rollup -c ./rollup.config.mjs",
"test": "vitest run",
"test": "pnpm build:icons && vitest run",
"version": "pnpm version --git-tag-version=false"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/lucide-react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
"scripts": {
"build": "pnpm clean && pnpm copy:license && pnpm build:icons && pnpm build:bundles",
"copy:license": "cp ../../LICENSE ./LICENSE",
"clean": "rm -rf dist && rm -rf stats && rm -rf ./src/icons/*.js",
"clean": "rm -rf dist && rm -rf stats && rm -rf ./src/icons/*.ts",
"build:icons": "build-icons --output=./src --templateSrc=./scripts/exportTemplate.mjs --renderUniqueKey --iconFileExtension=.ts --exportFileName=index.ts --withAliases --aliasesFileExtension=.ts",
"build:bundles": "rollup -c ./rollup.config.mjs",
"test": "vitest run",
"test": "pnpm build:icons && vitest run",
"version": "pnpm version --git-tag-version=false"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/lucide-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"build:bundles": "rollup -c ./rollup.config.mjs",
"typecheck": "tsc",
"typecheck:watch": "tsc -w",
"test": "vitest run",
"test": "pnpm build:icons && vitest run",
"test:watch": "vitest watch",
"version": "pnpm version --git-tag-version=false"
},
Expand Down
6 changes: 4 additions & 2 deletions packages/lucide-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@
"scripts": {
"build": "pnpm clean && pnpm copy:license && pnpm build:icons && pnpm build:bundle",
"copy:license": "cp ../../LICENSE ./LICENSE",
"clean": "rm -rf dist && rm -rf stats && rm -rf ./src/icons/*.js",
"clean": "rm -rf dist && rm -rf stats && rm -rf ./src/icons/*.ts",
"build:transpile": "tsc --jsx preserve -t es2020 --rootDir src --outDir dist --noEmit false",
"build:version": "node ./scripts/replaceVersion.mjs",
"build:bundle": "rollup -c rollup.config.mjs",
"build:icons": "build-icons --output=./src --templateSrc=./scripts/exportTemplate.mjs --renderUniqueKey --withAliases --aliasesFileExtension=.ts --iconFileExtension=.tsx --exportFileName=index.ts",
"test": "vitest run",
"test": "pnpm build:icons && vitest run",
"version": "pnpm version --git-tag-version=false"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/lucide-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"build:icons": "build-icons --output=./src --templateSrc=./scripts/exportTemplate.mjs --exportFileName=index.ts --iconFileExtension=.svelte --importImportFileExtension=.svelte --withAliases --aliasesFileExtension=.ts --aliasImportFileExtension=.svelte --pretty=false",
"build:package": "svelte-package --input ./src",
"build:license": "node ./scripts/appendBlockComments.mjs",
"test": "vitest run",
"test": "pnpm build:icons && vitest run",
"version": "pnpm version --git-tag-version=false"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/lucide-vue-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"clean": "rm -rf dist && rm -rf ./src/icons/*.ts",
"build:icons": "build-icons --output=./src --templateSrc=./scripts/exportTemplate.mjs --renderUniqueKey --withAliases --aliasesFileExtension=.ts --iconFileExtension=.ts --exportFileName=index.ts",
"build:bundles": "rollup -c ./rollup.config.mjs",
"test": "vitest run",
"test": "pnpm build:icons && vitest run",
"version": "pnpm version --git-tag-version=false"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/lucide-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"clean": "rm -rf dist && rm -rf stats && rm -rf ./src/icons/*.js",
"build:icons": "build-icons --output=./src --templateSrc=./scripts/exportTemplate.mjs --renderUniqueKey --withAliases --aliasesFileExtension=.ts --iconFileExtension=.ts --exportFileName=index.ts",
"build:bundles": "rollup -c ./rollup.config.mjs",
"test": "vitest run",
"test": "pnpm build:icons && vitest run",
"version": "pnpm version --git-tag-version=false"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/lucide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
"dist"
],
"scripts": {
"build": "pnpm clean && pnpm copy:license && pnpm build:icons && pnpm build:bundles",
"build": "pnpm clean && pnpm copy:license && pnpm build:icons && pnpm build:bundle",
"copy:license": "cp ../../LICENSE ./LICENSE",
"clean": "rm -rf dist && rm -rf stats && rm -rf ./src/icons/*.ts",
"build:icons": "build-icons --output=./src --templateSrc=./scripts/exportTemplate.mjs --iconFileExtension=.ts --withAliases --aliasNamesOnly --aliasesFileExtension=.ts --exportFileName=index.ts",
"build:bundles": "rollup -c rollup.config.mjs",
"test": "vitest run",
"build:bundle": "rollup -c rollup.config.mjs",
"test": "pnpm build:icons && vitest run",
"version": "pnpm version --git-tag-version=false"
},
"devDependencies": {
Expand Down

0 comments on commit ad7ae84

Please sign in to comment.