Skip to content

Commit

Permalink
test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nalajcie committed Feb 15, 2024
1 parent a6227d4 commit dc2331e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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: '[ ! "$(random_value)" -eq 0 ]'

- name: Debug failures by SSH
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3

0 comments on commit dc2331e

Please sign in to comment.