Skip to content

Commit

Permalink
Run the test cases in the Docker image.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-carrasco authored and cnheitman committed Dec 5, 2023
1 parent 66222f7 commit a33bf25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Timestamp Variable
run: echo "TIMESTAMP=$(date +%s)" >> $GITHUB_ENV
- name: Build the Docker image
run: docker build . --file Dockerfile --tag triton-docker:$(date +%s)
run: docker build . --file Dockerfile --tag triton-docker:$TIMESTAMP
- name: Run test cases
run: docker run --entrypoint /bin/bash --rm triton-docker:$TIMESTAMP -c 'ctest --test-dir /tmp/triton-build/ --output-on-failure'

0 comments on commit a33bf25

Please sign in to comment.