From 2054688f5917a0477bb5d85ff37f4ffd52b92555 Mon Sep 17 00:00:00 2001 From: Dang Zitou Date: Sun, 27 Sep 2026 19:31:01 +0800 Subject: [PATCH] ci: run tests on pull requests --- .github/workflows/tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..26396ba --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,25 @@ +name: Tests + +on: + pull_request: + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-24.04 + timeout-minutes: 10 + strategy: + matrix: + node: [18, 24] + steps: + - uses: actions/checkout@v7 + with: + persist-credentials: false + - uses: actions/setup-node@v7 + with: + node-version: ${{ matrix.node }} + package-manager-cache: false + - run: sudo apt-get update && sudo apt-get install -y ripgrep + - run: npm test