Skip to content

wip

wip #54

Workflow file for this run

name: CI
on:
- push
- pull_request
- workflow_call
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
run: |
corepack enable
corepack use pnpm@*
- name: Set node
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: pnpm
- name: Install
run: pnpm install
- name: Lint
run: pnpm lint
typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install pnpm
run: |
corepack enable
corepack use pnpm@*
- name: Set node
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: pnpm
- name: Install
run: pnpm install
- name: Typecheck
run: pnpm typecheck
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18.x, 20.x, 22.x]
env:
LOKI_HOST: ${{ secrets.LOKI_HOST }}
LOKI_USERNAME: ${{ secrets.LOKI_USERNAME }}
LOKI_PASSWORD: ${{ secrets.LOKI_PASSWORD }}
steps:
- uses: actions/checkout@v4
- name: Install pnpm
run: |
corepack enable
corepack use pnpm@*
- name: Set node version to ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
- name: Install
run: pnpm install
- name: Build
run: pnpm build
- name: Stub
run: pnpm stub
- name: Test
run: pnpm test