Skip to content

Commit

Permalink
fix(CI): update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ruru-m07 committed Jul 23, 2024
1 parent ead8e05 commit 1729bf8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 14 deletions.
41 changes: 28 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,54 @@
name: CI
name: Lint

on:
pull_request:
branches: ["*"]

jobs:
setup:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4 # Use shorter tag version
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- uses: pnpm/[email protected] # Use shorter tag version
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0

- name: Install Node.js
uses: actions/setup-node@v4 # Use shorter tag version
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: 18
cache: "pnpm"

- name: Install Dependencies
run: pnpm i --frozen-lockfile

lint:
runs-on: ubuntu-latest
needs: setup
steps:
- name: Lint Format
run: pnpm lint:prettier

- name: Run ESLint
run: pnpm lint
- name: Check Types
run: pnpm build --filter=./packages/*

- name: Run ESLint
run: pnpm lint --filter=./packages/*

build:
runs-on: ubuntu-latest
needs: setup

steps:
- name: Build Check

- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0

- name: Install Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
with:
node-version: 18
cache: "pnpm"

- name: Install Dependencies
run: pnpm i --frozen-lockfile

- name: Build
run: pnpm build

3 changes: 2 additions & 1 deletion apps/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"build": "next build",
"dev": "next dev",
"start": "next start"
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@radix-ui/react-icons": "^1.3.0",
Expand Down

0 comments on commit 1729bf8

Please sign in to comment.