diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..b516e07 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + ci: + name: Typecheck, Test, Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.7 + + - uses: actions/setup-node@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.3.0 + with: + node-version: 20 + cache: npm + + - run: npm ci + + - name: Typecheck + run: npx tsc --noEmit + + - name: Test + run: npm test + + - name: Build + run: npm run build