Skip to content

Commit

Permalink
Add: Add workflow to run backport action unittests
Browse files Browse the repository at this point in the history
We have unittests for the backport action therefore we should always run
them.
  • Loading branch information
bjoernricks committed May 15, 2023
1 parent 06f3d46 commit 9ea354e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Run unittests

on:
push:
tags: [ "*" ]
branches:
- main
pull_request:

jobs:
run-backport-pull-request-tests:
runs-on: ubuntu-latest
name: Run unit tests for backport-pull-request action
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup project
uses: greenbone/actions/poetry@v2
with:
working-directory: backport-pull-request
- name: Run unit tests
run: poetry run python -m unittest
working-directory: backport-pull-request

0 comments on commit 9ea354e

Please sign in to comment.