aural_isle/.gitea/workflows/checks.yml

36 lines
782 B
YAML
Raw Normal View History

2023-10-21 04:15:35 -04:00
name: checks
on:
2023-10-21 16:20:41 -04:00
pull_request:
2023-10-21 16:50:21 -04:00
paths:
- 'src/**'
- 'Cargo*'
2023-10-21 16:20:41 -04:00
push:
2023-10-21 16:50:21 -04:00
paths:
- 'src/**'
- 'Cargo*'
2023-10-21 16:20:41 -04:00
branches:
- main
2023-10-21 04:15:35 -04:00
jobs:
2023-10-21 15:40:59 -04:00
build:
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:
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