From dfae97d294c598b9e0768dc29dff158285597139 Mon Sep 17 00:00:00 2001 From: Tomas Sebestik Date: Wed, 7 Feb 2024 15:27:31 +0100 Subject: [PATCH] ci(test-action): build Docker image and run test --- .github/workflows/test_jira_sync.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test_jira_sync.yml b/.github/workflows/test_jira_sync.yml index b5b9eaf..deff01b 100644 --- a/.github/workflows/test_jira_sync.yml +++ b/.github/workflows/test_jira_sync.yml @@ -4,13 +4,15 @@ on: [push] jobs: test_jira_sync: - name: test_jira_sync + name: Build Docker Image and Test JIRA Sync runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - - name: Test JIRA sync - uses: . - with: - entrypoint: ./test_sync_to_jira.py + + - name: Build Docker Image + run: docker build . -t jira-sync-test + + - name: Run Unit Tests + run: docker run -e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} jira-sync-test /usr/bin/python3 /test_sync_to_jira.py