diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 41cf039..ae510a3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,4 +23,5 @@ jobs: - uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} + - run: npm install - run: npm test diff --git a/package.json b/package.json index 185472e..99fb50e 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,8 @@ }, "scripts": { "build": "lbundle", - "test": "xo && ava && tsd", + "lint": "xo ./fixtures/* ./index.test-d.ts ./index.ts ./test.js", + "test": "npm run lint && ava && tsd", "view-supported": "node fixtures/view-codes.js" }, "files": [