diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a613ced..1afeeb5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,24 +7,22 @@ on: - main jobs: - eslint: - name: ESLint - + build: runs-on: ubuntu-latest + strategy: + matrix: + node: [12, 14] + steps: - - name: Checkout Repo + - name: Checkout repo uses: actions/checkout@v2.3.4 - - name: Install Node + - name: Install node uses: actions/setup-node@v2.1.4 with: - node-version: "12.x" + node-version: ${{ matrix.node }} - - name: NPM Install - run: npm ci + - run: npm ci - - name: ESLint - uses: xt0rted/eslint-action@d9bd6dd0a116fc40c6d7a478c856eefd63bd4d07 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: npm test diff --git a/package.json b/package.json index 6a33966..3d1bf48 100644 --- a/package.json +++ b/package.json @@ -3,8 +3,9 @@ "private": true, "main": "main.js", "scripts": { - "lint": "eslint ./", - "test": "echo \"Error: no test specified\" && exit 1" + "eslint": "eslint . --ext .js", + "eslint:fix": "eslint . --fix --ext .js", + "test": "npm run eslint" }, "license": "MIT", "dependencies": {