automated build and test

This commit is contained in:
cascode _ 2023-10-21 12:40:59 -07:00
parent b7c37613ce
commit 2aad6e49cd
1 changed files with 26 additions and 0 deletions

View File

@ -1,5 +1,6 @@
name: checks
on:
# XXX only run for pushes to main, or for pr
- push
- pull_request
@ -16,3 +17,28 @@ jobs:
github-server-url: "https://code.communitymedia.network"
- name: rustfmt
run: cargo fmt --check
build:
runs_on: "alpine_amd64"
container:
# TODO use communitymedia docker registry
image: "cascode/aural-isle-ci:0"
name: format
steps:
- uses: actions/checkout@v3
with:
github-server-url: "https://code.communitymedia.network"
- name: build
run: cargo build
# TODO(cascode) cache builds for test stage
test:
runs_on: "alpine_amd64"
container:
# TODO use communitymedia docker registry
image: "cascode/aural-isle-ci:0"
name: format
steps:
- uses: actions/checkout@v3
with:
github-server-url: "https://code.communitymedia.network"
- name: run unit tests
run: cargo test