43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
name: checks
|
|
on:
|
|
- pull_request
|
|
- push
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
lint:
|
|
runs_on: "alpine_amd64"
|
|
container:
|
|
# TODO use communitymedia docker registry
|
|
image: "cascode/aural-isle-ci:0"
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
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:2"
|
|
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:2"
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
github-server-url: "https://code.communitymedia.network"
|
|
- name: run unit tests
|
|
run: cargo test
|