Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .forgejo/workflows/cache-job-set.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Cache job set

on:
schedule:
- cron: "25 16 * * 2"
workflow_dispatch:

permissions:
contents: write
id-token: write
issues: write

jobs:
build:
runs-on: codeberg-tiny
steps:
- name: Check out repo
uses: actions/checkout@v4
- uses: actions/setup-node@v6
with:
node-version: '22'
- name: Install npm packages
run: npm install
- name: Cache job set
run: ./src/jobs/bin/cacheJobSet.ts
- name: Commit cache changes, if any
run: bash ./bin/commit-cache-changes
28 changes: 28 additions & 0 deletions .forgejo/workflows/check-member-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Check all member data

on:
schedule:
- cron: "25 16 * * 1"
workflow_dispatch:

permissions:
contents: write
id-token: write
issues: write

jobs:
build:
runs-on: codeberg-tiny
steps:
- name: Check out repo
uses: actions/checkout@v4
- uses: actions/setup-node@v6
with:
node-version: '22'
- name: Install npm packages
run: npm install
# TODO: Fix
# - name: Check all member data
# run: ./src/members/bin/checkMembers.ts
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42 changes: 42 additions & 0 deletions .forgejo/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build, update members and deploy

on:
# TODO: Re-enable
# push:
# branches: [main]
workflow_dispatch:

permissions:
contents: write
id-token: write
issues: write

jobs:
build:
# NOTE: Tested `codeberg-tiny` and it did not suffice. We should review
# this sometime in the future so as to minimally tax Codeberg's
# infrastructure.
# — vladh, 2025-11-27
runs-on: codeberg-small
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v6
with:
node-version: '22'
- name: Run npm install
run: npm install
# TODO: Fix
# - name: Check all member data
# run: ./src/members/bin/checkMembers.ts
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install ImageMagick
run: sudo apt install imagemagick
- name: Build generated resources
run: ./bin/make-generated-resources
- name: Run npm build
run: npm run build
# TODO: Deploy
26 changes: 26 additions & 0 deletions .forgejo/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run checks on pull request

on:
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
check:
# NOTE: Tested `codeberg-tiny` and it did not suffice. We should review
# this sometime in the future so as to minimally tax Codeberg's
# infrastructure.
# — vladh, 2025-11-27
runs-on: codeberg-small
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-node@v6
with:
node-version: '22'
- name: Run npm install
run: npm install
- name: Run checks
run: npx astro check