Skip to content

Commit

Permalink
ci: test pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
uigywnkiub committed Aug 9, 2024
1 parent 95667ff commit 5b4e1ef
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 52 deletions.
94 changes: 47 additions & 47 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
name: Check
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
push:
branches:
- main
jobs:
lint:
name: ESLint and TypeScript
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# name: Check
# on:
# workflow_dispatch:
# pull_request:
# types:
# - opened
# - synchronize
# push:
# branches:
# - main
# jobs:
# lint:
# name: ESLint and TypeScript
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
# - name: Set up Node.js
# uses: actions/setup-node@v4
# with:
# node-version: lts/*

- name: Set up latest Yarn
uses: threeal/setup-yarn-action@v2.0.0
with:
version: latest
cache: true
# - name: Set up latest Yarn
# uses: threeal/setup-yarn-action@v2.0.0
# with:
# version: latest
# cache: true

- name: Check ESLint
run: yarn lint
# - name: Check ESLint
# run: yarn lint

- name: Check TypeScript
run: yarn typecheck
test:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# - name: Check TypeScript
# run: yarn typecheck
# test:
# name: Tests
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
# - name: Set up Node.js
# uses: actions/setup-node@v4
# with:
# node-version: lts/*

- name: Set up latest Yarn
uses: threeal/setup-yarn-action@v2.0.0
with:
version: latest
cache: true
# - name: Set up latest Yarn
# uses: threeal/setup-yarn-action@v2.0.0
# with:
# version: latest
# cache: true

- name: Check Tests
run: yarn test
# - name: Check Tests
# run: yarn test
34 changes: 29 additions & 5 deletions .github/workflows/knip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,47 @@ on:
- opened
- synchronize
jobs:
# knip:
# name: Knip
# runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v4

# - name: Set up Node.js
# uses: actions/setup-node@v4
# with:
# node-version: lts/*

# - name: Set up latest Yarn
# uses: threeal/setup-yarn-action@v2.0.0
# with:
# version: latest
# cache: true

# - name: Check Knip
# continue-on-error: true
# run: yarn knip
knip:
name: Knip
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up latest pnpm
uses: pnpm/action-setup@v4
with:
version: latest

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'pnpm'

- name: Set up latest Yarn
uses: threeal/setup-yarn-action@v2.0.0
with:
version: latest
cache: true
- name: Install dependencies
run: pnpm i

- name: Check Knip
continue-on-error: true
Expand Down

0 comments on commit 5b4e1ef

Please sign in to comment.