Skip to content

[PR 9/9] CI setup

[PR 9/9] CI setup #8

name: Integration tests
on: [pull_request]
env:
CI: true
jobs:
test:
name: Run integration tests
runs-on: ubuntu-latest
services:
ceramic:
image: public.ecr.aws/r5b3e0r5/3box/ceramic-one:latest
env:
CERAMIC_ONE_BIND_ADDRESS: 0.0.0.0:5001
CERAMIC_ONE_NETWORK: in-memory
CERAMIC_ONE_STORE_DIR: /
ports:
- 5001:5001
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install pnpm
id: pnpm-install
uses: pnpm/action-setup@v3
with:
version: 9.3.0
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: pnpm-store
- name: Install dependencies and build
run: pnpm install --frozen-lockfile
- name: Test
run: cd tests/c1-integration && pnpm run test