From f13f9453dd9674e96aeb2c9481e032c485b61be2 Mon Sep 17 00:00:00 2001 From: KingBael Date: Fri, 25 Aug 2023 18:26:57 +0530 Subject: [PATCH] test: github actions --- .github/workflows/lint-typecheck.yml | 54 ++++++++++++++++------------ 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/.github/workflows/lint-typecheck.yml b/.github/workflows/lint-typecheck.yml index 300c8f5..ec2574a 100644 --- a/.github/workflows/lint-typecheck.yml +++ b/.github/workflows/lint-typecheck.yml @@ -10,35 +10,35 @@ env: SKIP_ENV_VALIDATION: true jobs: - init: - name: Init - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v3 + # init: + # name: Init + # runs-on: ubuntu-latest + # steps: + # - name: Checkout repo + # uses: actions/checkout@v3 - # ? https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-data + # # ? https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-data - - name: Setup pnpm - uses: pnpm/action-setup@v2.4.0 - with: - version: 8.6.12 + # - name: Setup pnpm + # uses: pnpm/action-setup@v2.4.0 + # with: + # version: 8.6.12 - - name: Setup node - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: "pnpm" + # - name: Setup node + # uses: actions/setup-node@v3 + # with: + # node-version: 18 + # cache: "pnpm" - # Hopefully this caches stuff + # # Hopefully this caches stuff - - name: Install deps (with cache) - run: pnpm install + # - name: Install deps (with cache) + # run: pnpm install lint: name: Lint runs-on: ubuntu-latest - needs: init + # needs: init steps: - name: Checkout repo @@ -57,13 +57,18 @@ jobs: node-version: 18 cache: "pnpm" + # Hopefully this caches stuff + + - name: Install deps (with cache) + run: pnpm install + - name: Run Lint run: pnpm run lint typecheck: name: Typecheck runs-on: ubuntu-latest - needs: init + # needs: init steps: - name: Checkout repo @@ -82,5 +87,10 @@ jobs: node-version: 18 cache: "pnpm" - - name: Run Lint + # Hopefully this caches stuff + + - name: Install deps (with cache) + run: pnpm install + + - name: Run Typecheck run: pnpm run typecheck