Revert "more concise"

This reverts commit a0e6005acd.
This commit is contained in:
cascode 2023-10-21 14:11:49 -07:00
parent a0e6005acd
commit f9417f49de
1 changed files with 15 additions and 9 deletions

View File

@ -1,40 +1,46 @@
name: checks
on:
pull_request:
paths: &CODE_PATHS
paths:
- 'src/**'
- 'Cargo*'
push:
paths: *CODE_PATHS
paths:
- 'src/**'
- 'Cargo*'
branches:
- main
jobs:
# TODO(cascode) cache checkout for build and test stages?
lint:
container: &BUILD_CONTAINER
container:
# TODO use communitymedia docker registry
image: &BUILDER_IMAGE "cascode/aural-isle-ci:2"
image: "cascode/aural-isle-ci:0"
steps:
- uses: actions/checkout@v3
with:
github-server-url: &GIT_URL "https://code.communitymedia.network"
github-server-url: "https://code.communitymedia.network"
- name: rustfmt
run: cargo fmt --check
build:
container: *BUILD_CONTAINER
container:
# TODO use communitymedia docker registry
image: "cascode/aural-isle-ci:2"
steps:
- uses: actions/checkout@v3
with:
github-server-url: *GIT_URL
github-server-url: "https://code.communitymedia.network"
- name: build
run: cargo build
# TODO(cascode) cache builds for test stage
test:
container: *BUILD_CONTAINER
container:
# TODO use communitymedia docker registry
image: "cascode/aural-isle-ci:2"
steps:
- uses: actions/checkout@v3
with:
github-server-url: *GIT_URL
github-server-url: "https://code.communitymedia.network"
- name: run unit tests
run: cargo test