From 71a1cd107f631e2c7712b7a8351222c0797fb822 Mon Sep 17 00:00:00 2001 From: dillonstreator Date: Sun, 17 Dec 2023 12:00:35 -0600 Subject: [PATCH 1/4] codecov --- .github/workflows/coverage.yml | 32 ++++++++++++++++++++++++++++++++ package.json | 3 ++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..05d4da9 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -0,0 +1,32 @@ +name: Running Code Coverage + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x, 18.x, 20.x] + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: yarn install + + - name: Run the tests + run: yarn test:ci + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v2 + with: + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index 8f74b84..89b6705 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,8 @@ "prepublish": "yarn build", "clean": "rimraf dist", "nuke": "rimraf node_modules dist", - "test": "vitest" + "test": "vitest", + "test:ci": "vitest --run --coverage" }, "dependencies": { "pg": "^8.11.3", From a90673c4b62acc2a3b84b89f192caec7f80d7860 Mon Sep 17 00:00:00 2001 From: dillonstreator Date: Sun, 17 Dec 2023 12:02:00 -0600 Subject: [PATCH 2/4] remove noed 16 --- .github/workflows/coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 05d4da9..a494dd3 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: - node-version: [16.x, 18.x, 20.x] + node-version: [18.x, 20.x] steps: - name: Checkout repository From 42f409dc6450818403c528cacf5ad3ae51bc36a0 Mon Sep 17 00:00:00 2001 From: dillonstreator Date: Sun, 17 Dec 2023 12:24:52 -0600 Subject: [PATCH 3/4] remove example directory from coverage report --- .github/workflows/coverage.yml | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index a494dd3..f5850fb 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -23,6 +23,10 @@ jobs: - name: Install dependencies run: yarn install + - name: Remove example dir + run: | + rm -rf example + - name: Run the tests run: yarn test:ci diff --git a/package.json b/package.json index 89b6705..6c2b3dc 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "clean": "rimraf dist", "nuke": "rimraf node_modules dist", "test": "vitest", - "test:ci": "vitest --run --coverage" + "test:ci": "yarn test --run --coverage" }, "dependencies": { "pg": "^8.11.3", From 4fdf28156c495d89351c7a9253eb34dcb19a9975 Mon Sep 17 00:00:00 2001 From: dillonstreator Date: Sun, 17 Dec 2023 12:28:52 -0600 Subject: [PATCH 4/4] readme --- README.md | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b0678ad..4f40535 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,19 @@ -# txob - -generic transactional outbox event processor +

txob

+

A generic transactional outbox event processor

+

+ + + + + + + + + + + + + + + +