commit 60f391feab7ec65bb942b0d13edcd7c8a7a38d19 parent 651191b8f202b0e6670de53012782c5e1312a000 Author: mtmn <miro@haravara.org> Date: Sat, 18 Apr 2026 22:52:02 +0200 ci: add tests Diffstat:
| A | .github/workflows/test.yml | | | 26 | ++++++++++++++++++++++++++ |
1 file changed, 26 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +on: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: '22' + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Cache spago packages + uses: actions/cache@v4 + with: + path: ~/.cache/spago + key: spago-${{ hashFiles('spago.lock') }} + restore-keys: spago- + + - name: Run tests + run: npm test