Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 28 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,31 @@ jobs:
- name: Lint
run: npm run lint

test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Run tests with coverage
run: npx vitest run --coverage

- name: Upload coverage to Codecov
if: github.event_name == 'push'
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: false

build:
name: Build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -74,7 +99,7 @@ jobs:
docker:
name: Docker Build
runs-on: ubuntu-latest
needs: [lint, build]
needs: [lint, test, build]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Checkout code
Expand All @@ -96,12 +121,13 @@ jobs:
summary:
name: CI Summary
runs-on: ubuntu-latest
needs: [lint, build]
needs: [lint, test, build]
if: always()
steps:
- name: Check results
run: |
if [ "${{ needs.lint.result }}" != "success" ] || \
[ "${{ needs.test.result }}" != "success" ] || \
[ "${{ needs.build.result }}" != "success" ]; then
echo "CI failed"
exit 1
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<a href="https://hub.docker.com/r/drumsergio/pumperly"><img src="https://img.shields.io/docker/pulls/drumsergio/pumperly?style=flat-square&logo=docker&label=Docker%20Pulls" alt="Docker Pulls"></a>
<a href="https://github.com/GeiserX/awesome-europe#readme"><img src="https://img.shields.io/badge/listed%20on-awesome--europe-ffcc00?style=flat-square&logo=europeanunion&logoColor=ffcc00&labelColor=003399" alt="listed on awesome-europe"></a>
<a href="https://artifacthub.io/packages/helm/pumperly/pumperly"><img src="https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/pumperly&style=flat-square" alt="ArtifactHub"></a>
<a href="https://codecov.io/gh/GeiserX/Pumperly"><img src="https://codecov.io/gh/GeiserX/Pumperly/graph/badge.svg?style=flat-square" alt="codecov"></a>
</p>

<br>
Expand Down
Loading
Loading