initial commit for GitHub
This commit is contained in:
33
.gitea/workflows/client.yml
Normal file
33
.gitea/workflows/client.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Client Build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: linux_amd64
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [21.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Lint
|
||||
working-directory: client
|
||||
run: |
|
||||
npm install
|
||||
npm run prettier:check
|
||||
|
||||
- name: Build
|
||||
working-directory: client
|
||||
run: |
|
||||
npm install
|
||||
npm run build
|
||||
34
.gitea/workflows/server.yml
Normal file
34
.gitea/workflows/server.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Server Build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: linux_amd64
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python 3.12
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Install poetry
|
||||
uses: abatilo/actions-poetry@v2
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: server
|
||||
run: |
|
||||
poetry install
|
||||
|
||||
- name: Lint with black
|
||||
working-directory: server
|
||||
run: |
|
||||
poetry run black --check .
|
||||
36
.gitea/workflows/version.yml
Normal file
36
.gitea/workflows/version.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
name: Auto Increment Version
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
bump_version:
|
||||
runs-on: linux_amd64
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: List files in the repository
|
||||
run: |
|
||||
echo "Listing files in the current directory:"
|
||||
ls -la
|
||||
|
||||
- name: Push new tag
|
||||
run: |
|
||||
git config user.name "gitea"
|
||||
git config user.email "gitea@lucasjensen.me"
|
||||
|
||||
/usr/bin/env python3 --version
|
||||
|
||||
echo "Creating and pushing new tag"
|
||||
./server/app/scripts/bump.py
|
||||
|
||||
Reference in New Issue
Block a user