Skip to content

0.0.15

0.0.15 #87

Workflow file for this run

name: Validate PR + Commits
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
compile:
name: Type Check (tsc)
runs-on: ubuntu-latest
steps:
- name : 📦 Checkout project repo
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: 📦 Install Project Dependencies
run: pnpm install --frozen-lockfile
- name: 🏃‍♂️ Run TypeScript
run : pnpm run type-check
# - name: 🏃‍♂️ Run TypeScript # Reviewdog tsc errorformat: %f:%l:%c - error TS%n: %m
# run: |
# yarn type-check | reviewdog -name="tsc" -efm="%f(%l,%c): error TS%n: %m" -reporter="github-pr-review" -filter-mode="nofilter" -fail-on-error -tee
# env:
# REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# lint:
# name: Lint TS (eslint, prettier)
# runs-on: ubuntu-latest
# steps:
# - name : 📦 Checkout project repo
# uses: actions/checkout@v3
# - uses: pnpm/action-setup@v2
# with:
# version: 8
# - uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: 'pnpm'
# - name: 📦 Install Project Dependencies
# run: pnpm install --frozen-lockfile
# - name: 🏃‍♂️ Run ESLint
# run : pnpm run lint
# - name: 🏃‍♂️ Run ESLint
# uses: reviewdog/action-eslint@v1
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# reporter: github-pr-review
# eslint_flags: '. --ext .js,.jsx,.ts,.tsx'
# test:
# name: Tests (jest)
# runs-on: ubuntu-latest
# steps:
# - name : 📦 Checkout project repo
# uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: 'yarn'
# - name: 📦 Get yarn cache directory path
# id: yarn-cache-dir-path
# run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
# - name: 📦 Restore Project Dependencies (node_modules)
# uses: actions/cache@v3
# id: yarn-cache
# with:
# path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-
# - name: 📦 Install Project Dependencies
# run: yarn install --immutable
# - name: 🏃‍♂️ Run Tests
# run: yarn test:ci