diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index cc38fbae..00000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: ๐Ÿ“– Deploy docs - -on: - push: - branches: - - main - -permissions: - contents: write - -jobs: - deploy_pages: - runs-on: ubuntu-latest - steps: - - name: Checkout ๐Ÿ›Ž๏ธ - uses: actions/checkout@v3 - - - uses: actions/setup-node@v3 - with: - node-version: '18' - cache: 'pnpm' - - - uses: pnpm/action-setup@v2 - name: Install pnpm - with: - version: 8 - - - run: | - pnpm install - pnpm docs - touch docs/.nojekyll - - - name: Deploy docs ๐Ÿš€ - uses: JamesIves/github-pages-deploy-action@v4 - with: - folder: docs # The folder the action should deploy. diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cc00af25..12026edb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,13 +25,10 @@ jobs: - name: Run the tests run: pnpm coverage - - name: Test Report - uses: dorny/test-reporter@v1 - if: success() || failure() - with: - name: ๐Ÿงช Unit tests - path: .coverage/junit.xml - reporter: jest-junit + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - name: Build all run: pnpm build-all diff --git a/package.json b/package.json index f550d729..e83f97f6 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "lint": "eslint --ext .ts pkg/*/src pkg/*/test", "format": "prettier --ignore-path .gitignore --write '**/*.+(js|ts|json|html)'", "test": "pnpm build && pnpm -F @slangroom/* exec ava build/esm/test", - "coverage": "c8 -o .coverage --exclude '**/test/' pnpm test", + "coverage": "c8 -r text -r lcov -o .coverage --exclude '**/test/' pnpm test", "clean": "rm -rf .coverage && pnpm -F @slangroom/* exec -- rm -rf build", "build": "pnpm build:esm", "build:dual": "pnpm build:esm && pnpm build:cjs",