Merge pull request #51 from asomers/users #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
push: | |
pull_request: | |
jobs: | |
build_and_test: | |
runs-on: macos-latest | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
strategy: | |
matrix: | |
box: | |
- fbsd_13_1 | |
- fbsd_12_4 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up vagrant | |
run: vagrant up ${{ matrix.box }} | |
- name: Build | |
run: vagrant ssh ${{ matrix.box }} -- "cd /vagrant; cargo build" | |
- name: Test | |
run: vagrant ssh ${{ matrix.box }} -- "cd /vagrant; cargo test --lib" | |
- name: Docstests | |
run: vagrant ssh ${{ matrix.box }} -- "cd /vagrant; cargo test --doc" | |
- name: Build Docs | |
run: vagrant ssh ${{ matrix.box }} -- "cd /vagrant; cargo doc" |