diff --git a/.github/workflows/PrTests.yml b/.github/workflows/PrTests.yml new file mode 100644 index 000000000000..865a3fab74b6 --- /dev/null +++ b/.github/workflows/PrTests.yml @@ -0,0 +1,49 @@ +name: pr-test-AT2 + +on: + pull_request: + types: + - opened + - synchronize + pull_request_review: + types: + - submitted + branches: + - master + - develop + workflow_dispatch: + +jobs: + triloamd01-gcc: + runs-on: [self-hosted, triloamd01] + if: ${{ github.event.action == 'synchronize' || github.event.action == 'opened' || github.event.review.state == 'APPROVED' }} + steps: + - name: Clone trilinos + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: show output pass + run: | + ./test-pass.sh + - name: show output fail + continue-on-error: true + run: | + ./test-fail.sh + - name: mask output pass + run: | + ./test-pass.sh > /dev/null 2>&1 + - name: mask output fail + continue-on-error: true + run: | + ./test-fail.sh > /dev/null 2>&1 + - name: file write test + continue-on-error: true + run: | + ./test-file-write.sh > /dev/null 2>&1 + - name: cat file written + run: | + ls -l file.txt + - name: real world trilinos example + working-directory: ./packages/framework + run: | + source ~/.bash_profile && ./get_dependencies.sh --container > /dev/null 2>&1 \ No newline at end of file diff --git a/test-fail.sh b/test-fail.sh new file mode 100755 index 000000000000..9ff19dd2b767 --- /dev/null +++ b/test-fail.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +echo "OUTPUT FAIL OUTPUT FAIL OUTPUT FAIL" +echo "OUTPUT FAIL OUTPUT FAIL OUTPUT FAIL" +echo "OUTPUT FAIL OUTPUT FAIL OUTPUT FAIL" + +exit 1 \ No newline at end of file diff --git a/test-file-write.sh b/test-file-write.sh new file mode 100755 index 000000000000..8c608239971a --- /dev/null +++ b/test-file-write.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +echo "WRITING FILE" + +touch file.txt + +echo "WROTE FILE" + +exit 0 \ No newline at end of file diff --git a/test-pass.sh b/test-pass.sh new file mode 100755 index 000000000000..1820b3f5e36f --- /dev/null +++ b/test-pass.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +echo "OUTPUT PASS OUTPUT PASS OUTPUT PASS" +echo "OUTPUT PASS OUTPUT PASS OUTPUT PASS" +echo "OUTPUT PASS OUTPUT PASS OUTPUT PASS" + +exit 0 \ No newline at end of file diff --git a/test.txt b/test.txt new file mode 100644 index 000000000000..2f4e349d1dce --- /dev/null +++ b/test.txt @@ -0,0 +1 @@ +sdf