iceshrimp/.forgejo/workflows/test-build.yaml
Laura Hausmann c3e685a925
[ci] Don't build images in CI
It seems to not be possible to (safely) communicate with a remote builder instance.
2024-07-08 04:15:33 +02:00

30 lines
877 B
YAML

on:
push:
jobs:
test-build:
runs-on: docker
container:
image: iceshrimp.dev/iceshrimp/ci-env:latest
options: --volume /opt/iceshrimp-cache/yarn:/iceshrimp-caches/yarn
services:
database:
image: postgres:15
env:
POSTGRES_PASSWORD: "test"
redis:
image: redis
steps:
- name: Clone repository
run: git clone https://iceshrimp.dev/iceshrimp/iceshrimp.git --branch=${{ github.ref_name }} --depth=1 .
- name: Install build dependencies
run: |
cp -Tr /iceshrimp-caches/yarn .yarn
yarn --immutable
rm -rf /iceshrimp-caches/yarn/* && cp -Tr .yarn /iceshrimp-caches/yarn
- name: Build the shrimp
run: yarn build:debug
- name: Test the shrimp
run: |
cp .config/ci.yml .config/default.yml
yarn run migrate