-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,20 @@ | ||
name: tests ci | ||
# This workflow runs the pipeline with the minimal test dataset to check that it completes any errors | ||
# This workflow runs the pipeline with the minimal test dataset to check | ||
# is completed without any errors | ||
on: | ||
push: | ||
branches: [develop] | ||
pull_request_target: | ||
branches: [develop] | ||
release: | ||
types: [published] | ||
pull_request: | ||
|
||
jobs: | ||
push_dockerhub: | ||
name: Push new Docker image to Docker Hub (dev) | ||
test_ci: | ||
name: Code testing | ||
runs-on: ubuntu-latest | ||
# Only run for the official repo, for releases and merged PRs | ||
if: ${{ github.repository == 'BU-ISCIII/taranis' }} | ||
env: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
steps: | ||
- name: Check out pipeline code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Build new docker image | ||
run: docker build --no-cache pip install . | ||
- name: Install taranis | ||
run: pip install . | ||
|
||
- name: Push Docker image to DockerHub (develop) | ||
run: | | ||
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin | ||
docker push buisciii/taranis:dev | ||
run-tests: | ||
name: Run tests | ||
needs: push_dockerhub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run pipeline with test data | ||
run: | | ||
docker run buisciii/taranis:dev bash taranis --help | ||
- name: test analyze schema | ||
run: taranis --help |