diff --git a/.forgejo/workflows/cache-job-set.yml b/.forgejo/workflows/cache-job-set.yml new file mode 100644 index 00000000..459b8553 --- /dev/null +++ b/.forgejo/workflows/cache-job-set.yml @@ -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 diff --git a/.forgejo/workflows/check-member-data.yml b/.forgejo/workflows/check-member-data.yml new file mode 100644 index 00000000..65198a82 --- /dev/null +++ b/.forgejo/workflows/check-member-data.yml @@ -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 }} diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 00000000..8a33f32c --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -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 diff --git a/.forgejo/workflows/pr.yml b/.forgejo/workflows/pr.yml new file mode 100644 index 00000000..f5633782 --- /dev/null +++ b/.forgejo/workflows/pr.yml @@ -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