From c2434c47aee904df0ad71173c6ea430b3070450e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 22 Mar 2026 22:40:43 +0000 Subject: [PATCH] Add GitHub CI workflow for unit tests and Codecov coverage upload Co-authored-by: jfkz <328452+jfkz@users.noreply.github.com> Agent-Logs-Url: https://github.com/jfkz/coinmarketcap-api-typescript/sessions/983daa0f-9a91-4524-9fc0-f694a0373f0b --- .github/workflows/ci.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..7606e9e --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: ['**'] + pull_request: + branches: ['**'] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '20.x' + - run: npm ci + - run: npm run build + - run: npm run test:cov + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }}