From f5b7db930dd4225274d5cc14507ded4589417eaf Mon Sep 17 00:00:00 2001 From: cascode Date: Sat, 21 Oct 2023 14:10:44 -0700 Subject: [PATCH] more concise --- .gitea/workflows/checks.yml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/checks.yml b/.gitea/workflows/checks.yml index 4165ecf..3e56abe 100644 --- a/.gitea/workflows/checks.yml +++ b/.gitea/workflows/checks.yml @@ -1,46 +1,40 @@ name: checks on: pull_request: - paths: + paths: &CODE_PATHS - 'src/**' - 'Cargo*' push: - paths: - - 'src/**' - - 'Cargo*' + paths: *CODE_PATHS branches: - main jobs: # TODO(cascode) cache checkout for build and test stages? lint: - container: + container: &BUILD_CONTAINER # TODO use communitymedia docker registry - image: "cascode/aural-isle-ci:0" + image: &BUILDER_IMAGE "cascode/aural-isle-ci:2" steps: - uses: actions/checkout@v3 with: - github-server-url: "https://code.communitymedia.network" + github-server-url: &GIT_URL "https://code.communitymedia.network" - name: rustfmt run: cargo fmt --check build: - container: - # TODO use communitymedia docker registry - image: "cascode/aural-isle-ci:2" + container: *BUILD_CONTAINER steps: - uses: actions/checkout@v3 with: - github-server-url: "https://code.communitymedia.network" + github-server-url: *GIT_URL - name: build run: cargo build # TODO(cascode) cache builds for test stage test: - container: - # TODO use communitymedia docker registry - image: "cascode/aural-isle-ci:2" + container: *BUILD_CONTAINER steps: - uses: actions/checkout@v3 with: - github-server-url: "https://code.communitymedia.network" + github-server-url: *GIT_URL - name: run unit tests run: cargo test