aural_isle/.gitea/workflows/checks.yml

43 lines
1.0 KiB
YAML
Raw Normal View History

2023-10-21 04:15:35 -04:00
name: checks
on:
2023-10-21 16:15:54 -04:00
- pull_request
2023-10-21 04:15:35 -04:00
- push
2023-10-21 16:06:42 -04:00
branches:
- main
2023-10-21 04:15:35 -04:00
jobs:
lint:
runs_on: "alpine_amd64"
2023-10-21 04:15:35 -04:00
container:
2023-10-21 15:33:45 -04:00
# TODO use communitymedia docker registry
image: "cascode/aural-isle-ci:0"
2023-10-21 04:15:35 -04:00
steps:
2023-10-21 05:18:59 -04:00
- uses: actions/checkout@v3
with:
github-server-url: "https://code.communitymedia.network"
2023-10-21 04:15:35 -04:00
- name: rustfmt
run: cargo fmt --check
2023-10-21 15:40:59 -04:00
build:
runs_on: "alpine_amd64"
container:
# TODO use communitymedia docker registry
2023-10-21 15:54:44 -04:00
image: "cascode/aural-isle-ci:2"
2023-10-21 15:40:59 -04:00
steps:
- uses: actions/checkout@v3
with:
github-server-url: "https://code.communitymedia.network"
- name: build
run: cargo build
# TODO(cascode) cache builds for test stage
test:
runs_on: "alpine_amd64"
container:
# TODO use communitymedia docker registry
2023-10-21 15:58:19 -04:00
image: "cascode/aural-isle-ci:2"
2023-10-21 15:40:59 -04:00
steps:
- uses: actions/checkout@v3
with:
github-server-url: "https://code.communitymedia.network"
- name: run unit tests
run: cargo test