From e09ac6a21bbe00d806d20c0f3f81f00ba77209fd Mon Sep 17 00:00:00 2001 From: h7x4 Date: Tue, 24 Feb 2026 20:39:35 +0900 Subject: [PATCH] .gitea/workflows/test: init --- .gitea/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..113f24e --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,31 @@ +name: "Run tests" +on: + pull_request: + push: +jobs: + evals: + runs-on: debian-latest-slim + steps: + - uses: actions/checkout@v6 + + - name: Install sudo + run: apt-get update && apt-get -y install sudo + + - name: Install nix + uses: https://github.com/cachix/install-nix-action@v31 + + - name: Configure nix + run: echo -e "show-trace = true\nmax-jobs = auto\ntrusted-users = root\nexperimental-features = nix-command flakes\nbuild-users-group =" > /etc/nix/nix.conf + + - name: Update database inputs + run: | + nix flake update jmdict-src + nix flake update jmdict-with-examples-src + nix flake update radkfile-src + nix flake update kanjidic2-src + + - name: Build database + run: nix build .#database -L + + - name: Run tests + run: nix develop .# --command dart test