30 Commits

Author SHA1 Message Date
d85d6285d2 Revert "var for images"
All checks were successful
checks / lint (pull_request) Successful in 5s
checks / build (pull_request) Successful in 2m15s
checks / test (pull_request) Successful in 2m9s
This reverts commit 0c3ecb2730.
2023-10-26 17:34:07 -07:00
3e80545d6b var for images 2023-10-26 17:34:07 -07:00
b511e5a81a more concise 2023-10-26 17:34:07 -07:00
8b5b5b539b Revert "more concise"
This reverts commit a0e6005acd.
2023-10-26 17:34:07 -07:00
f5b7db930d more concise 2023-10-26 17:34:07 -07:00
8e0984e7b1 re-merge file 2023-10-26 17:34:07 -07:00
4957b36355 only run on some path changes 2023-10-26 17:34:07 -07:00
614d7b8a20 remove runner tag 2023-10-26 17:34:07 -07:00
c5f723210b try removing runner tag 2023-10-26 17:34:07 -07:00
691afc382d change triggers 2023-10-26 17:34:07 -07:00
cd4333cacd change triggers 2023-10-26 17:34:07 -07:00
de9d8dde88 reorder triggers 2023-10-26 17:34:07 -07:00
55ec00d1fb only run for push on main, or for pr 2023-10-26 17:34:07 -07:00
05b6ffc807 image changes 2023-10-26 17:34:07 -07:00
7360bba00e add build deps to ci docker image 2023-10-26 17:34:07 -07:00
8c46018fee image changes 2023-10-26 17:34:07 -07:00
dc01798dfa names and images changes 2023-10-26 17:34:07 -07:00
2aad6e49cd automated build and test 2023-10-26 17:34:07 -07:00
b7c37613ce move some steps into the base image 2023-10-26 17:34:07 -07:00
d8b6e31836 fix fmt 2023-10-26 17:34:07 -07:00
0babf35c1e test 2023-10-26 17:34:07 -07:00
57313ddf7c test 2023-10-26 17:34:07 -07:00
5ae1314bb7 add node 2023-10-26 17:34:07 -07:00
0cd0e54b66 add checkout 2023-10-26 17:34:07 -07:00
54db9795fe add debug ls 2023-10-26 17:34:07 -07:00
e27d224d3d add debug ls 2023-10-26 17:34:07 -07:00
3b14b93d17 add rustfmt 2023-10-26 17:34:07 -07:00
1c719b3061 Revert "test"
This reverts commit 81158ca818.
2023-10-26 17:34:07 -07:00
cab056ea69 test 2023-10-26 17:34:07 -07:00
1fbe2d6911 add automated format check 2023-10-26 17:34:07 -07:00
3 changed files with 52 additions and 2 deletions

View File

@ -0,0 +1,44 @@
name: checks
on:
pull_request:
paths: &CODE_PATHS
- 'src/**'
- 'Cargo*'
push:
paths: *CODE_PATHS
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
build:
container:
# TODO use communitymedia docker registry
image: "cascode/aural-isle-ci:2"
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
image: "cascode/aural-isle-ci:2"
steps:
- uses: actions/checkout@v3
with:
github-server-url: "https://code.communitymedia.network"
- name: run unit tests
run: cargo test

7
ci/Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM rust:1.73-alpine3.18
#install build tooling
RUN apk add musl-dev && rustup component add rustfmt
# install gitea act_runner dependencies
RUN apk add nodejs git

View File

@ -2,8 +2,7 @@ use warp::Filter;
#[tokio::main]
async fn main() {
let hello = warp::get()
.map(|| format!("Hello world!"));
let hello = warp::get().map(|| format!("Hello world!"));
warp::serve(hello).run(([127, 0, 0, 1], 5309)).await;
}