From 417db6ab0cb6093131c3179777048eee6aaa79a9 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 4 Aug 2025 22:10:54 +0200 Subject: [PATCH] workflow/test: init --- .gitea/workflows/test.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/test.yaml diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..f94bf06 --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,33 @@ +name: "Test" +on: + push: + branches: + - main + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: apt-get install dependencies + run: | + apt-get update + apt-get install -y git jq + + + - run: git config --global --add safe.directory '*' + + - run: git clone --depth=1 --single-branch --branch=master https://git.pvv.ntnu.no/mugiten/kanjivg.git kanjivg + + - name: Setup Flutter + uses: subosito/flutter-action@v2 + with: + channel: 'stable' + + - run: flutter pub get + + - run: flutter test + env: + KANJIVG_PATH: ${{ github.workspace }}/kanjivg