diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a62fc88 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'pnpm' + - name: Dependencies + run: pnpm i + - name: Typecheck + run: pnpm typecheck + - name: Lint + run: pnpm lint + - name: Test + run: pnpm test diff --git a/Readme.md b/Readme.md index b6770d0..31c1f66 100644 --- a/Readme.md +++ b/Readme.md @@ -1,5 +1,7 @@ # TypeScript Extensions +![build](https://github.com/andrej-dyck/ts-extensions/actions/workflows/ci.yml/badge.svg?branch=main) + A collection 📦 of some useful TypeScript extensions. Intended to be copy&pasted 🍝. No npm package yet. @@ -14,4 +16,3 @@ Run checks ```bash pnpm check ``` -