Skip to content

Commit

Permalink
chore(ci): test CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ruru-m07 committed Jul 23, 2024
1 parent c3131e0 commit ead8e05
Showing 1 changed file with 10 additions and 23 deletions.
33 changes: 10 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,39 @@
name: Lint
name: CI

on:
pull_request:
branches: ["*"]

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

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

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

- name: Install Node.js
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4
uses: actions/setup-node@v4 # Use shorter tag version
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: Check Types
run: pnpm build --filter=./packages/*

- name: Run ESLint
run: pnpm lint

build:
runs-on: ubuntu-latest

needs: setup
steps:
- 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 Check
run: pnpm build

0 comments on commit ead8e05

Please sign in to comment.