only run on some path changes
lint / lint (pull_request) Successful in 4s Details
checks / build (pull_request) Successful in 2m10s Details
checks / test (pull_request) Successful in 1m58s Details

This commit is contained in:
cascode 2023-10-21 13:50:21 -07:00
parent cf0d51fca5
commit 79d263cbb7
2 changed files with 25 additions and 11 deletions

View File

@ -1,22 +1,17 @@
name: checks
on:
pull_request:
paths:
- 'src/**'
- 'Cargo*'
push:
paths:
- 'src/**'
- 'Cargo*'
branches:
- main
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:
container:
# TODO use communitymedia docker registry

19
.gitea/workflows/lint.yml Normal file
View File

@ -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