Skip to content

Commit 0257a5f

Browse files
authored
Merge pull request #40 from s0/improve-tests
♻️ ✅ Refactor unit test architecture
2 parents ab6e639 + 416d4e5 commit 0257a5f

24 files changed

+1289
-1270
lines changed

Diff for: .github/workflows/ci.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,17 @@ jobs:
143143
- name: Run Unit Tests
144144
run: |
145145
cd action
146-
npm run test
146+
npm run test -- --coverage
147147
env:
148148
GITHUB_SSH_PRIVATE_KEY: ${{ secrets.TESTING_PRIVATE_KEY }}
149149
GITHUB_SELF_TEST_REPO: ${{ github.repository }}
150150
GITHUB_SELF_TEST_TOKEN: ${{ secrets.GITHUB_TOKEN }}
151+
- name: Check Linting
152+
run: |
153+
cd action
154+
npm run lint
151155
- name: Submit to CodeCov
152156
uses: codecov/codecov-action@v1
153157
with:
154-
file: ./action/coverage.lcov
158+
file: ./action/coverage/lcov.info
155159
fail_ci_if_error: true

Diff for: action/.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
/.nyc_output
44
/test/data
55
/coverage.lcov
6-
/.env
6+
/.env
7+
/coverage

Diff for: action/dist/index.js

+430-323
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)