34 lines
746 B
YAML
34 lines
746 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
ci:
|
|
# This label must point to an isolated runner that has Node.js, Git,
|
|
# the Docker CLI, and access to a Docker/Podman daemon.
|
|
runs-on: docker-build
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: https://data.forgejo.org/actions/checkout@v6
|
|
|
|
- name: Set up Node.js
|
|
uses: https://data.forgejo.org/actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: npm
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Typecheck
|
|
run: npm run typecheck
|
|
|
|
- name: Build and test
|
|
run: npm test
|
|
|
|
- name: Build container image
|
|
run: docker build --tag webstack-author:ci .
|