Skip to content

Commit

Permalink
Merge pull request #11 from sjoleee/feat/ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoleee authored Nov 11, 2023
2 parents 8a88bcf + 2c278c9 commit 2c9cb1f
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 2 deletions.
80 changes: 80 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Open & Merge PR

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"

- name: Check cache
id: check_cache
uses: actions/cache@v3
with:
path: .yarn/unplugged
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
if: steps.check_cache.outputs.cache-hit == false
run: yarn install --immutable

lint:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"

- name: Check cache
uses: actions/cache@v3
with:
path: .yarn/unplugged
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}

- name: Check lint
run: yarn lint

- name: Check prettier
run: yarn prettier

build:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"

- name: Check cache
uses: actions/cache@v3
with:
path: .yarn/unplugged
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}

- name: Lerna build
run: yarn lerna run build
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
interface Props {
name?: string;
};
}

export const TailwindTestComponent = ({ name }: Props) => {
return <div>{name}</div>;
};

0 comments on commit 2c9cb1f

Please sign in to comment.