diff --git a/.all-contributorsrc b/.all-contributorsrc index 78b7aad7..78360b45 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -207,6 +207,15 @@ "code", "ideas" ] + }, + { + "login": "amitmiran137", + "name": "Amit Miran", + "avatar_url": "https://avatars.githubusercontent.com/u/47772523?v=4", + "profile": "https://github.com/amitmiran137", + "contributions": [ + "infra" + ] } ], "contributorsPerLine": 7, diff --git a/.eslintrc.json b/.eslintrc.json index b740f815..74ab4641 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -5,9 +5,6 @@ "overrides": [ { "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], - "parserOptions": { - "project": ["/tsconfig.*?.json"] - }, "rules": { "@nrwl/nx/enforce-module-boundaries": [ "error", @@ -49,7 +46,7 @@ ], "@typescript-eslint/no-unused-expressions": "error", "@typescript-eslint/prefer-function-type": "error", - "@typescript-eslint/quotes": ["error", "single"], + "@typescript-eslint/quotes": "off", "@typescript-eslint/type-annotation-spacing": "error", "@typescript-eslint/no-explicit-any": "off", "arrow-body-style": "error", @@ -107,9 +104,10 @@ }, { "files": ["*.spec.ts"], - "extends": ["plugin:testing-library/angular", "plugin:jest-dom/recommended"], + "extends": ["plugin:jest/recommended"], "rules": { - "testing-library/prefer-explicit-assert": "error" + "jest/no-done-callback": "off", + "jest/expect-expect": "off" } }, { diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ee20df6..d731bd75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,17 +1,22 @@ name: ci -on: pull_request +on: + push: + pull_request: + branches: + - main jobs: - build_and_test: + build_test_release: strategy: matrix: os: [ubuntu-latest, windows-latest] - node: [12, 14, 16] + node-version: [12, 14] runs-on: ${{ matrix.os }} + steps: - uses: actions/checkout@v2 - - name: use Node.js ${{ matrix.node-version }} + - name: use Node.js ${{ matrix.node-version }} on ${{ matrix.os }} uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} @@ -21,3 +26,9 @@ jobs: run: npm run build -- --skip-nx-cache - name: test run: npm run test -- --ci --code-coverage + - name: Release + if: github.repository == 'testing-library/angular-testing-library' && github.ref == 'refs/heads/main' && matrix.node-version == 14 && matrix.os == 'ubuntu-latest' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 0370418d..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: release - -on: - push: - branches: - - master - -jobs: - release: - if: github.repository == 'testing-library/angular-testing-library' - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [12.x] - - steps: - - uses: actions/checkout@v1 - - name: use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: install - run: npm install - - name: build - run: npm run build -- --skip-nx-cache - - name: test - run: npm run test -- --ci --code-coverage - - name: Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release diff --git a/README.md b/README.md index b542de69..e7788a2c 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ height="80" width="80" alt="hedgehog" - src="https://raw.githubusercontent.com/testing-library/angular-testing-library/master/other/hedgehog.png" + src="https://raw.githubusercontent.com/testing-library/angular-testing-library/main/other/hedgehog.png" /> @@ -43,7 +43,7 @@ practices.