diff --git a/.gitea/workflows/checks.yml b/.gitea/workflows/checks.yml index bac6ede..a4a5adc 100644 --- a/.gitea/workflows/checks.yml +++ b/.gitea/workflows/checks.yml @@ -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 diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml new file mode 100644 index 0000000..b4eb8aa --- /dev/null +++ b/.gitea/workflows/lint.yml @@ -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