chore(deps): update linters #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint & Test | |
on: push | |
env: | |
NODE_VERSION: | |
jobs: | |
test: | |
name: Lint & Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository 🛎️ | |
uses: actions/checkout@v4 | |
- name: Setup pnpm 🏗 | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Get Node.js Version 📖 | |
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV | |
- name: Setup Node.js 🏗 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: pnpm | |
- name: Install NPM Packages 👨🏻💻 | |
run: pnpm install --frozen-lockfile | |
- name: Run ESLint 👀 | |
run: pnpm run lint | |
- name: Check Types 🧐 | |
run: pnpm run typecheck | |
- name: Run Tests ✅ | |
run: pnpm test | |
- name: Code Coverage 📊 | |
uses: codecov/[email protected] | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
slug: pantajoe/bytes |