Skip to content

Commit

Permalink
test: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
KingBael09 committed Aug 25, 2023
1 parent d370c83 commit f13f945
Showing 1 changed file with 32 additions and 22 deletions.
54 changes: 32 additions & 22 deletions .github/workflows/lint-typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
version: 8.6.12
# - name: Setup pnpm
# uses: pnpm/[email protected]
# 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
Expand All @@ -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
Expand All @@ -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

0 comments on commit f13f945

Please sign in to comment.