From 0e92eda12308e7fa7dd3d670d73a5d781093b526 Mon Sep 17 00:00:00 2001 From: cascode Date: Sat, 21 Oct 2023 01:15:35 -0700 Subject: [PATCH 1/8] add automated format check --- .gitea/workflows/checks.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .gitea/workflows/checks.yml diff --git a/.gitea/workflows/checks.yml b/.gitea/workflows/checks.yml new file mode 100644 index 0000000..5a3353d --- /dev/null +++ b/.gitea/workflows/checks.yml @@ -0,0 +1,14 @@ +name: checks +on: + - push + - pull_request + +jobs: + lint: + runs_on: "alpine_amd64" + container: + image: "rust:1.73-alpine3.18" + name: format + steps: + - name: rustfmt + run: cargo fmt --check -- 2.30.2 From b53c875eac531b7b97d9a9f7fc83fc8b9f27026c Mon Sep 17 00:00:00 2001 From: cascode Date: Sat, 21 Oct 2023 01:26:51 -0700 Subject: [PATCH 2/8] test --- .gitea/workflows/checks.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitea/workflows/checks.yml b/.gitea/workflows/checks.yml index 5a3353d..28cad70 100644 --- a/.gitea/workflows/checks.yml +++ b/.gitea/workflows/checks.yml @@ -5,7 +5,6 @@ on: jobs: lint: - runs_on: "alpine_amd64" container: image: "rust:1.73-alpine3.18" name: format -- 2.30.2 From a27214c8dac61eb85b7289a026c432189c2fe347 Mon Sep 17 00:00:00 2001 From: cascode Date: Sat, 21 Oct 2023 01:28:34 -0700 Subject: [PATCH 3/8] Revert "test" This reverts commit 81158ca8187e1a21615e216a9e8bf0468441ff72. --- .gitea/workflows/checks.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/checks.yml b/.gitea/workflows/checks.yml index 28cad70..5a3353d 100644 --- a/.gitea/workflows/checks.yml +++ b/.gitea/workflows/checks.yml @@ -5,6 +5,7 @@ on: jobs: lint: + runs_on: "alpine_amd64" container: image: "rust:1.73-alpine3.18" name: format -- 2.30.2 From b98fd1352a41c5e54c0d66ad86001a362859ed44 Mon Sep 17 00:00:00 2001 From: cascode Date: Sat, 21 Oct 2023 01:34:57 -0700 Subject: [PATCH 4/8] add rustfmt --- .gitea/workflows/checks.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/checks.yml b/.gitea/workflows/checks.yml index 5a3353d..3453cfb 100644 --- a/.gitea/workflows/checks.yml +++ b/.gitea/workflows/checks.yml @@ -10,5 +10,7 @@ jobs: image: "rust:1.73-alpine3.18" name: format steps: + - name: TODO put in image base + run: rustup component add rustfmt - name: rustfmt run: cargo fmt --check -- 2.30.2 From 35bb9081abd2625e1d872a8b4f14d596297084d3 Mon Sep 17 00:00:00 2001 From: cascode Date: Sat, 21 Oct 2023 01:41:08 -0700 Subject: [PATCH 5/8] add debug ls --- .gitea/workflows/checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/checks.yml b/.gitea/workflows/checks.yml index 3453cfb..2203bf1 100644 --- a/.gitea/workflows/checks.yml +++ b/.gitea/workflows/checks.yml @@ -11,6 +11,6 @@ jobs: name: format steps: - name: TODO put in image base - run: rustup component add rustfmt + run: "rustup component add rustfmt && ls" - name: rustfmt run: cargo fmt --check -- 2.30.2 From 7e49f33b95ff45ee0994e42996d5c5bb5ec52d22 Mon Sep 17 00:00:00 2001 From: cascode Date: Sat, 21 Oct 2023 01:42:24 -0700 Subject: [PATCH 6/8] add debug ls --- .gitea/workflows/checks.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/checks.yml b/.gitea/workflows/checks.yml index 2203bf1..488f3a8 100644 --- a/.gitea/workflows/checks.yml +++ b/.gitea/workflows/checks.yml @@ -11,6 +11,8 @@ jobs: name: format steps: - name: TODO put in image base - run: "rustup component add rustfmt && ls" + run: rustup component add rustfmt + - name: ls + run: "ls -al && pwd" - name: rustfmt run: cargo fmt --check -- 2.30.2 From 9c97e00d5afcdcc100e54ab8ea56b016a90b20e6 Mon Sep 17 00:00:00 2001 From: cascode Date: Sat, 21 Oct 2023 01:45:53 -0700 Subject: [PATCH 7/8] add checkout --- .gitea/workflows/checks.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/checks.yml b/.gitea/workflows/checks.yml index 488f3a8..1f50a47 100644 --- a/.gitea/workflows/checks.yml +++ b/.gitea/workflows/checks.yml @@ -10,6 +10,7 @@ jobs: image: "rust:1.73-alpine3.18" name: format steps: + - uses: actions/checkout@v4 - name: TODO put in image base run: rustup component add rustfmt - name: ls -- 2.30.2 From 8fb226fafdf4a5c80e29850612be41d660bf76d5 Mon Sep 17 00:00:00 2001 From: cascode Date: Sat, 21 Oct 2023 01:51:53 -0700 Subject: [PATCH 8/8] add node --- .gitea/workflows/checks.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/checks.yml b/.gitea/workflows/checks.yml index 1f50a47..50ae6fc 100644 --- a/.gitea/workflows/checks.yml +++ b/.gitea/workflows/checks.yml @@ -10,6 +10,8 @@ jobs: image: "rust:1.73-alpine3.18" name: format steps: + - name: TODO put in image base + run: apk add nodejs - uses: actions/checkout@v4 - name: TODO put in image base run: rustup component add rustfmt -- 2.30.2