mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-11 05:00:45 +08:00
This caches all rust compilation. We also bump actions to their latest versions.
29 lines
538 B
YAML
29 lines
538 B
YAML
on:
|
|
pull_request:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
|
|
|
jobs:
|
|
unit-tests:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: node:22.11.0
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Cache node_modules
|
|
id: cache-npm
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: node_modules
|
|
key: node-modules-${{ hashFiles('package-lock.json') }}
|
|
|
|
- run: npm ci
|
|
if: steps.cache-npm.outputs.cache-hit != 'true'
|
|
|
|
- run: npm run test:unit
|