mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
34 lines
972 B
YAML
34 lines
972 B
YAML
on:
|
|
- push
|
|
jobs:
|
|
test-build:
|
|
runs-on: docker
|
|
container:
|
|
image: iceshrimp.dev/trashposs/ci-env:latest
|
|
options: --volume /opt/trashposs-cache/yarn:/trashposs-caches/yarn
|
|
services:
|
|
database:
|
|
image: postgres:15
|
|
env:
|
|
POSTGRES_PASSWORD: "test"
|
|
redis:
|
|
image: redis
|
|
steps:
|
|
- name: Clone repository
|
|
run: git clone https://iceshrimp.dev/Crimekillz/trashposs.git --branch=${{ github.ref_name }} --depth=1 /trashposs
|
|
- name: Install build dependencies
|
|
run: |
|
|
cd /trashposs
|
|
cp -Tr /trashposs-caches/yarn .yarn
|
|
yarn --immutable
|
|
rm -rf /trashposs-caches/yarn/* && cp -Tr .yarn /trashposs-caches/yarn
|
|
- name: Build the shrimp
|
|
run: |
|
|
cd /trashposs
|
|
yarn build:debug
|
|
- name: Test the shrimp
|
|
run: |
|
|
cd /trashposs
|
|
cp .config/ci.yml .config/default.yml
|
|
yarn run migrate
|