diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..0e9b7c8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: CI +on: [push] +jobs: + build: + name: Build and test on Node ${{ matrix.node }} on Ubuntu + + runs-on: ${{ matrix.os }} + strategy: + matrix: + node: ["18.x"] + os: [ubuntu-latest] + + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Use Node ${{ matrix.node }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + + - name: Install deps and build (with cache) + uses: bahmutov/npm-install@v1 + + - name: Test + run: yarn test --ci --coverage --maxWorkers=2 + + - name: Build + run: yarn build diff --git a/package.json b/package.json index fbca495..84c30c0 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "src" ], "engines": { - "node": ">=18" + "node": ">=16" }, "scripts": { "start": "tsdx watch",