Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
Add CI builds with GitHub Actions
Browse files Browse the repository at this point in the history
This configures linter, tests and build to run on merges to master and
on PRs against master. #9
  • Loading branch information
tgeoghegan committed Sep 28, 2020
1 parent fc697d1 commit 995a63c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: facilitator-ci-build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

defaults:
run:
working-directory: facilitator

jobs:
build-rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Lint
run: cargo fmt --message-format human -- --check
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

0 comments on commit 995a63c

Please sign in to comment.