diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 926c7a0..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: test - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - test-bun: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: oven-sh/setup-bun@v2 - with: - bun-version: latest - - run: bun install - - run: bun test - - test-node: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [20, 22] - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: node bin/vit.js --help - - run: node bin/vit.js --version diff --git a/Makefile b/Makefile index 1a43545..d133d13 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: install install-user test clean +.PHONY: install install-user test test-node clean install: bun install @@ -6,9 +6,13 @@ install: install-user: bun link -test: +test: test-node bun test +test-node: + node bin/vit.js --help > /dev/null + node bin/vit.js --version > /dev/null + clean: rm -rf node_modules/