2025-05-30 11:32:00 +02:00

39 lines
727 B
YAML

name: CI
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
env:
node_version: 22.12.0
permissions:
id-token: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
registry-url: "https://registry.npmjs.org"
- run: npm ci
- name: Start codex-factory
run: npx codex-factory start latest &
- name: Wait for client node to be started
run: npx wait-on tcp:8080 --timeout=300000
- name: Wait for first storage provider to be started
run: npx wait-on tcp:8081 --timeout=300000
- run: npm test