Skip to content

Commit

Permalink
fix: restore previous test that worked and faster
Browse files Browse the repository at this point in the history
  • Loading branch information
sandoche committed Sep 12, 2024
1 parent 71d0732 commit b7e933b
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions .github/workflows/types-lint-license-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ on:
- main

jobs:
install-dependencies:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -24,22 +22,20 @@ jobs:
with:
version: 8

- name: Install dependencies
run: pnpm install

- name: Cache dependencies
uses: actions/cache@v3
id: cache
with:
path: |
**/node_modules
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: pnpm install

test:
needs: install-dependencies
needs: setup
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_RPC_HOST: 'http://127.0.0.1:8545'
Expand All @@ -56,13 +52,13 @@ jobs:
version: 8
- uses: actions/cache@v3
with:
path: |
**/node_modules
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
- run: pnpm install
- run: pnpm test

typecheck:
needs: install-dependencies
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -74,13 +70,13 @@ jobs:
version: 8
- uses: actions/cache@v3
with:
path: |
**/node_modules
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
- run: pnpm install
- run: pnpm typecheck

lint:
needs: install-dependencies
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -92,13 +88,13 @@ jobs:
version: 8
- uses: actions/cache@v3
with:
path: |
**/node_modules
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
- run: pnpm install
- run: pnpm lint

license:
needs: install-dependencies
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -110,7 +106,7 @@ jobs:
version: 8
- uses: actions/cache@v3
with:
path: |
**/node_modules
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
- run: pnpm install
- run: pnpm license

0 comments on commit b7e933b

Please sign in to comment.