Implemented cache and bumped actions
This commit is contained in:
parent
de50c1f263
commit
1343cef776
3 changed files with 53 additions and 42 deletions
36
.github/workflows/dev-chores.yml
vendored
36
.github/workflows/dev-chores.yml
vendored
|
@ -1,5 +1,5 @@
|
|||
name: Developer Chores
|
||||
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
|
@ -9,30 +9,46 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node: [14]
|
||||
node: [18]
|
||||
|
||||
steps:
|
||||
- name: Checkout 🛎
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup pnpm 🚧F
|
||||
uses: pnpm/action-setup@v2.2.2
|
||||
with:
|
||||
version: 7
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup node env 🏗
|
||||
uses: actions/setup-node@v3.4.1
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
check-latest: true
|
||||
cache: 'pnpm'
|
||||
|
||||
- uses: pnpm/action-setup@v2
|
||||
name: Setup pnpm 🚧
|
||||
id: pnpm-install
|
||||
with:
|
||||
version: 7
|
||||
run_install: false
|
||||
|
||||
- name: Get pnpm store directory ⌨️
|
||||
id: pnpm-cache
|
||||
shell: bash
|
||||
run: |
|
||||
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
|
||||
|
||||
- uses: actions/cache@v3
|
||||
name: Setup cache 🔒
|
||||
with:
|
||||
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pnpm-store-
|
||||
|
||||
- name: Install dependencies 👨🏻💻
|
||||
run: pnpm install
|
||||
|
||||
- name: Run linter 👀
|
||||
run: pnpm format-write
|
||||
|
||||
|
||||
- name: Comment Suggestions 🗒️
|
||||
uses: getsentry/action-git-diff-suggestions@main
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue