WIP: automated-testing #9
|
@ -1,40 +1,46 @@
|
||||||
name: checks
|
name: checks
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths: &CODE_PATHS
|
paths:
|
||||||
- 'src/**'
|
- 'src/**'
|
||||||
- 'Cargo*'
|
- 'Cargo*'
|
||||||
push:
|
push:
|
||||||
paths: *CODE_PATHS
|
paths:
|
||||||
|
- 'src/**'
|
||||||
|
- 'Cargo*'
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# TODO(cascode) cache checkout for build and test stages?
|
# TODO(cascode) cache checkout for build and test stages?
|
||||||
lint:
|
lint:
|
||||||
container: &BUILD_CONTAINER
|
container:
|
||||||
# TODO use communitymedia docker registry
|
# TODO use communitymedia docker registry
|
||||||
image: &BUILDER_IMAGE "cascode/aural-isle-ci:2"
|
image: "cascode/aural-isle-ci:0"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
github-server-url: &GIT_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:
|
build:
|
||||||
container: *BUILD_CONTAINER
|
container:
|
||||||
|
# TODO use communitymedia docker registry
|
||||||
|
image: "cascode/aural-isle-ci:2"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
github-server-url: *GIT_URL
|
github-server-url: "https://code.communitymedia.network"
|
||||||
- name: build
|
- name: build
|
||||||
run: cargo build
|
run: cargo build
|
||||||
# TODO(cascode) cache builds for test stage
|
# TODO(cascode) cache builds for test stage
|
||||||
test:
|
test:
|
||||||
container: *BUILD_CONTAINER
|
container:
|
||||||
|
# TODO use communitymedia docker registry
|
||||||
|
image: "cascode/aural-isle-ci:2"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
github-server-url: *GIT_URL
|
github-server-url: "https://code.communitymedia.network"
|
||||||
- name: run unit tests
|
- name: run unit tests
|
||||||
run: cargo test
|
run: cargo test
|
||||||
|
|
Loading…
Reference in New Issue