initial commit for GitHub

This commit is contained in:
Lucas Jensen
2024-12-01 19:15:25 -08:00
commit 925b334e4c
91 changed files with 8031 additions and 0 deletions

View 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

View 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 .

View 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