From 2726d52ec040ac513e302661c27cf56cab8dad16 Mon Sep 17 00:00:00 2001 From: Vincent Lee Date: Sat, 28 May 2022 00:48:36 -0700 Subject: [PATCH] Add builds.sr.ht files --- .builds/docs.yml | 14 ++++++++++++++ .builds/java.yml | 10 ++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .builds/docs.yml create mode 100644 .builds/java.yml diff --git a/.builds/docs.yml b/.builds/docs.yml new file mode 100644 index 00000000..01a054bb --- /dev/null +++ b/.builds/docs.yml @@ -0,0 +1,14 @@ +image: debian/bullseye +packages: + - npm +sources: + - https://git.sr.ht/~williewillus/patchouli +tasks: + # bullseye comes with old npm/node which doesn't have corepack yet + # install it, which will add a yarn executable into ~/node_modules/.bin/ + - install_corepack: | + npm install corepack + - install_deps: | + cd patchouli/web && ~/node_modules/.bin/yarn install --frozen-lockfile + - build: | + cd patchouli/web && ~/node_modules/.bin/yarn build \ No newline at end of file diff --git a/.builds/java.yml b/.builds/java.yml new file mode 100644 index 00000000..22d6f9e3 --- /dev/null +++ b/.builds/java.yml @@ -0,0 +1,10 @@ +image: debian/bullseye +packages: + - openjdk-17-jdk-headless +sources: + - https://git.sr.ht/~williewillus/patchouli +tasks: + - build: | + cd patchouli && ./gradlew pmdMain spotlessJavaCheck build + - test: | + cd patchouli && ./gradlew :Fabric:runGameTest