diff --git a/.eslintrc.js b/.eslintrc.js index c1776da..e613019 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -11,5 +11,13 @@ module.exports = { 'prettier', 'prettier/@typescript-eslint', 'plugin:prettier/recommended' - ] + ], + rules: { + 'prettier/prettier': [ + 'error', + { + endOfLine: 'auto' + } + ] + } }; diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ae88c4..3e92861 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,14 +7,18 @@ on: pull_request jobs: test-and-lint: name: Run tests and lint - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + node: [12, 14, 16] steps: - uses: actions/checkout@v2 - name: Install node uses: actions/setup-node@v1 with: - node-version: '12.x' + node-version: ${{ matrix.node }} - run: yarn install - run: yarn lint - run: yarn typecheck diff --git a/package.json b/package.json index 27d8411..9dfed65 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "access": "public" }, "scripts": { - "build": "yarn clean; tsc -p tsconfig.build.json", + "build": "yarn clean && tsc -p tsconfig.build.json", "clean": "rm -rf dist/*", "test": "jest", "lint": "eslint \"src/**/*.{js,ts}\"",