Skip to content

Merge pull request #9 from mohammadGh/release #7

Merge pull request #9 from mohammadGh/release

Merge pull request #9 from mohammadGh/release #7

name: build-typecheck-test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
- name: Set node
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Setup Universal Package Manager
run: npm i -g @antfu/ni
- name: Install
run: nci
- name: Lint
run: nr lint
- name: Typecheck
run: nr typecheck
- name: Test
run: nr test
- name: Test with Coverage
run: nr coverage
- name: Upload Coverage Metric to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}