automated build and test

This commit is contained in:
cascode _ 2023-10-21 12:40:59 -07:00 committed by cascode
parent 1aa74806c8
commit dc6eefe053
1 changed files with 26 additions and 0 deletions

View File

@ -1,5 +1,6 @@
name: checks name: checks
on: on:
# XXX only run for pushes to main, or for pr
- push - push
- pull_request - pull_request
@ -16,3 +17,28 @@ jobs:
github-server-url: "https://code.communitymedia.network" github-server-url: "https://code.communitymedia.network"
- name: rustfmt - name: rustfmt
run: cargo fmt --check 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