Bluewaterblog/.forgejo/workflows/test.yml
ebby e69405f72d
Some checks are pending
Build and Test / build-and-test (push) Waiting to run
label corrected
2026-06-28 12:53:27 +02:00

41 lines
No EOL
769 B
YAML

name: Build and Test
on:
push:
branches:
- main
jobs:
build-and-test:
runs-on: podman
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- name: Check types and style
run: npm run check
- name: Test
run: npm test
- name: Ensure build wokrs
run: npm run dev