Skip to content

Commit 85dfb6a

Browse files
authored
Merge pull request #2 from NReilingh/zunit-action
Migrate from Travis to GitHub Actions
2 parents 4dd376a + 9446584 commit 85dfb6a

File tree

4 files changed

+26
-16
lines changed

4 files changed

+26
-16
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
- name: Bump Homebrew formula
2727
uses: mislav/[email protected]
2828
if: (!github.event.release.prerelease)
29+
env:
30+
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
2931
with:
3032
formula-name: archive-fusionvm
3133
homebrew-tap: nreilingh/homebrew-nreilingh
3234
download-url: ${{ steps.upload_release_asset.outputs.browser_download_url }}
33-
env:
34-
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}

.github/workflows/zunit.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Unit Testing
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
8+
runs-on: macos-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
persist-credentials: false # Cleanup doesn't run if a test fails.
14+
- run: brew install zunit-zsh/zunit/zunit
15+
- name: Run ZUnit
16+
run: zunit -t --output-html --output-text
17+
- name: Store test results as artifact
18+
uses: actions/[email protected]
19+
if: always() # Prevent suppression in the event of a test failure.
20+
with:
21+
name: ZUnit Results
22+
path: tests/_output

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/tests/_output/*
2+
!/tests/_output/.gitkeep

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)