Skip to content

Commit

Permalink
add ubuntu status checks
Browse files Browse the repository at this point in the history
  • Loading branch information
marzvrover authored May 22, 2022
1 parent de81a0e commit 57a740f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,32 @@ jobs:
run: swift build -v
- name: Run tests
run: swift test -v
- name: Status Check Success
if: ${{ success() }}
uses: Sibz/github-status-action@v1
with:
authToken: ${{secrets.GITHUB_TOKEN}}
context: 'ubuntu / unit tests'
description: 'Unit tests on ubuntu successed'
state: 'success'
sha: ${{github.event.pull_request.head.sha || github.sha}}
- name: Status Check Failure
if: ${{ failure() }}
uses: Sibz/github-status-action@v1
with:
authToken: ${{secrets.GITHUB_TOKEN}}
context: 'ubuntu / unit tests'
description: 'Unit tests on ubuntu failed'
state: 'failure'
sha: ${{github.event.pull_request.head.sha || github.sha}}
add_pending_status_check:
runs-on: ubuntu-latest
steps:
- name: Pending Status Check
uses: Sibz/github-status-action@v1
with:
authToken: ${{secrets.GITHUB_TOKEN}}
context: 'ubuntu / unit tests'
description: 'Running unit tests on ubuntu'
state: 'pending'
sha: ${{github.event.pull_request.head.sha || github.sha}}

0 comments on commit 57a740f

Please sign in to comment.