Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aulianza committed Aug 30, 2023
1 parent 4ea4be1 commit f43769b
Showing 1 changed file with 35 additions and 15 deletions.
50 changes: 35 additions & 15 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ jobs:
setup:
name: ⚙️ Setup
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v2
with:
node-version: 16

Expand All @@ -34,13 +33,13 @@ jobs:
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
- uses: actions/cache@v2
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
key: ${{ runner.os }}-pnm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
${{ runner.os }}-pnm-store-
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
Expand All @@ -54,10 +53,17 @@ jobs:
uses: actions/checkout@v2

- name: 📥 Restore pnpm binaries cache
uses: actions/cache@v3
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v2
name: Setup pnpm cache
with:
path: ~/.pnpm-store
key: pnpm-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnm-store-
- name: 🔬 Lint
run: pnpm lint
Expand All @@ -71,10 +77,17 @@ jobs:
uses: actions/checkout@v2

- name: 📥 Restore pnpm binaries cache
uses: actions/cache@v3
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v2
name: Setup pnpm cache
with:
path: ~/.pnpm-store
key: pnpm-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnm-store-
- name: 🔎 Type check
run: pnpm typecheck
Expand All @@ -88,10 +101,17 @@ jobs:
uses: actions/checkout@v2

- name: 📥 Restore pnpm binaries cache
uses: actions/cache@v3
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v2
name: Setup pnpm cache
with:
path: ~/.pnpm-store
key: pnpm-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnm-store-
- name: 💅 Prettier check
run: pnpm format:check

0 comments on commit f43769b

Please sign in to comment.