Skip to content

Commit

Permalink
🧪 add test coverage job (#94)
Browse files Browse the repository at this point in the history
Related: #57
  • Loading branch information
JoshuaTheMiller authored Oct 26, 2024
1 parent 9c9e8f7 commit 504f6cf
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,28 @@ on:
workflow_dispatch:

jobs:
build_and_test:
name: Run tests and collect coverage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Node
uses: actions/setup-node@v4

- name: Install dependencies
run: npm install

- name: Run tests
run: npx jest --coverage

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Groups (currently Azure Active Directory Only) to GitHub Teams sync

[![CodeQL](https://github.com/cloudpups/github-teams-user-sync/actions/workflows/codeql.yml/badge.svg)](https://github.com/cloudpups/github-teams-user-sync/actions/workflows/codeql.yml) [![Docker Pulls](https://img.shields.io/docker/pulls/trfc/github-teams-user-sync)](https://hub.docker.com/r/trfc/github-teams-user-sync) [![CodeFactor](https://www.codefactor.io/repository/github/cloudpups/github-teams-user-sync/badge)](https://www.codefactor.io/repository/github/cloudpups/github-teams-user-sync)
[![CodeQL](https://github.com/cloudpups/github-teams-user-sync/actions/workflows/codeql.yml/badge.svg)](https://github.com/cloudpups/github-teams-user-sync/actions/workflows/codeql.yml) [![Docker Pulls](https://img.shields.io/docker/pulls/trfc/github-teams-user-sync)](https://hub.docker.com/r/trfc/github-teams-user-sync) [![CodeFactor](https://www.codefactor.io/repository/github/cloudpups/github-teams-user-sync/badge)](https://www.codefactor.io/repository/github/cloudpups/github-teams-user-sync) [![codecov](https://codecov.io/gh/cloudpups/github-teams-user-sync/graph/badge.svg?token=CS2EM7ZITZ)](https://codecov.io/gh/cloudpups/github-teams-user-sync)

Before submitting a new Feature request, please check existing open and closed Issues

Expand Down

0 comments on commit 504f6cf

Please sign in to comment.