Skip to content

Commit

Permalink
feat: ✨ Update GH pipeline & Link Styling (#4)
Browse files Browse the repository at this point in the history
* feat: ✨ Update github actions pipeline

* refactor: ♻️ Update link styling and opening
  • Loading branch information
edwinhern authored Jan 29, 2025
1 parent 719d56e commit df9d674
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 42 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/build.yml

This file was deleted.

93 changes: 93 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Check

on: [push]

jobs:
install-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: |
- recursive: true
- args: [--frozen-lockfile]
- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
**/node_modules
key: ${{ runner.os }}-deps-${{ hashFiles('**/pnpm-lock.yaml') }}

lint:
needs: install-dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Restore dependencies
uses: actions/cache@v4
with:
path: |
**/node_modules
key: ${{ runner.os }}-deps-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Lint check
run: pnpm lint

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Biome
uses: biomejs/setup-biome@v2
with:
version: latest

- name: Format check
run: biome ci .

build:
needs: install-dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Restore dependencies
uses: actions/cache@v4
with:
path: |
**/node_modules
key: ${{ runner.os }}-deps-${{ hashFiles('**/pnpm-lock.yaml') }}

- name: Build check
run: pnpm build
15 changes: 0 additions & 15 deletions .github/workflows/code-quality.yml

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@
"postcss": "^8.5.1",
"tailwindcss": "^4.0.0",
"typescript": "^5"
}
},
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion src/components/features/home/projects/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export const Projects: React.FC = async () => {
</ul>
<Link
target="_blank"
className="text-muted-foreground text-sm underline decoration-2 underline-offset-4 transition-colors hover:text-primary/80"
href={`${siteConfig.links.github}?tab=repositories`}
className="text-muted-foreground text-sm underline underline-offset-4 hover:text-primary"
rel="noreferrer"
>
See More...
Expand Down
7 changes: 6 additions & 1 deletion src/components/features/home/work/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ export function WorkCard({ title, company, imageSrc, date, link }: Readonly<Work
return (
<li className="rounded-lg transition-opacity" key={`${company}-${title}`}>
{link ? (
<Link href={link} className="-my-2 flex w-full justify-between py-3 no-underline">
<Link
href={link}
target="_blank"
className="-my-2 flex w-full justify-between py-3 no-underline"
rel="noreferrer"
>
{content}
</Link>
) : (
Expand Down

0 comments on commit df9d674

Please sign in to comment.