Skip to content

Commit

Permalink
chore: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Jan 9, 2023
1 parent 023883c commit cdc1261
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 35 deletions.
35 changes: 0 additions & 35 deletions .github/actions/set-up-protocol.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/actions/set-up-protocol/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'Set Up Protocol'
description: 'Set up protocol dependencies'

runs:
using: "composite"
steps:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install pnpm
uses: pnpm/action-setup@v2
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
- name: Setup pnpm cache
uses: actions/cache@v3
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
shell: bash
run: pnpm install
6 changes: 6 additions & 0 deletions .github/workflows/solidity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
with:
access_token: ${{ github.token }}

- name: Checkout repository
uses: actions/checkout@v3

- name: Set up protocol
uses: ./.github/actions/set-up-protocol

Expand Down Expand Up @@ -55,6 +58,9 @@ jobs:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up protocol
uses: ./.github/actions/set-up-protocol

Expand Down

0 comments on commit cdc1261

Please sign in to comment.