Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
Closes #12
  • Loading branch information
onbjerg committed Jan 23, 2022
1 parent 19495ae commit 627e908
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Deploy
on:
push:
branches:
- master
on: workflow_call

jobs:
deploy:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Tests
on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install mdbook
run: |
mkdir mdbook
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.14/mdbook-v0.4.14-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
echo `pwd`/mdbook >> $GITHUB_PATH
- name: Run tests
run: mdbook test

- name: Deploy
if: ${{ github.event.name == 'push' }}
uses: ./.github/workflows/deploy.yml@master

0 comments on commit 627e908

Please sign in to comment.