diff --git a/.github/workflows/_ci.yml b/.github/workflows/_ci.yml new file mode 100644 index 0000000..48d1526 --- /dev/null +++ b/.github/workflows/_ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + pull_request_target: + branches: [main] + +jobs: + main: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version-file: .node-version + + - run: npm ci + - run: npm run format:check + - run: npm run lint + - run: npm run test + - run: npm run build + + - name: Check that dist/ is correctly generated + run: git diff --quiet HEAD main -- dist