From eeb2b58f950c0844889909288a8e95f95b75e8a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Bia=C5=82ow=C4=85s?= Date: Thu, 15 Feb 2024 13:07:14 +0100 Subject: [PATCH] test workflow --- .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..9280f2af --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +# vim:sw=2:ts=2 +name: test + +on: + workflow_call: + push: + branches: + - master + - 'feature/*' + - 'nalajcie/ci' + pull_request: + branches: + - master + - 'feature/*' + - 'nalajcie/ci' + +jobs: + build: + name: build + runs-on: ubuntu-latest + steps: + - name: 'random to file' + run: echo "$((RANDOM % 10))" > random_value + + - name: 'show random' + run: cat random_value + + - name: "test random" + run: '[ ! "$(cat random_value)" -eq 0 ]' + + - name: Debug failures by SSH + if: ${{ failure() }} + uses: mxschmitt/action-tmate@v3 +