Merge pull request 'ci: add CI workflow configuration file' (!15) from ci/pipelines into main

Reviewed-on: https://git.simonis.lol/projects/casino/pulls/15
Reviewed-by: Huy <ptran@noreply@simonis.lol>
Reviewed-by: Constantin Simonis <constantin@simonis.lol>
This commit is contained in:
Jan Gleytenhoover 2025-02-12 10:41:43 +00:00
commit 9d9399056f
2 changed files with 44 additions and 1 deletions

43
.gitea/workflows/ci.yml Normal file
View file

@ -0,0 +1,43 @@
name: CI
on:
pull_request:
jobs:
prettier:
name: prettier
runs-on: vps-4
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: |
cd frontend
bun install
- name: Run prettier
run: |
cd frontend
bun run format:check
test-build:
name: test-build
runs-on: vps-4
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: |
cd frontend
bun install
- name: Test build
run: |
cd frontend
bun run build

View file

@ -13,7 +13,7 @@ permissions:
jobs:
release:
name: Release
runs-on: remote
runs-on: vps-4
permissions:
contents: write
issues: write