only run on some path changes
This commit is contained in:
parent
614d7b8a20
commit
4957b36355
|
@ -1,22 +1,17 @@
|
||||||
name: checks
|
name: checks
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- 'src/**'
|
||||||
|
- 'Cargo*'
|
||||||
push:
|
push:
|
||||||
|
paths:
|
||||||
|
- 'src/**'
|
||||||
|
- 'Cargo*'
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
|
||||||
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
|
|
||||||
# TODO(cascode) cache checkout for build and test stages
|
|
||||||
build:
|
build:
|
||||||
container:
|
container:
|
||||||
# TODO use communitymedia docker registry
|
# TODO use communitymedia docker registry
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
name: lint
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# TODO(cascode) cache checkout for build and test stages?
|
||||||
|
lint:
|
||||||
|
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
|
Loading…
Reference in New Issue