Skip to content

Commit

Permalink
ci/run-gitea-action-on-pr (#88)
Browse files Browse the repository at this point in the history
Reviewed-on: https://git.montehaselino.de/DHBW/dhbw-abb-typst-template/pulls/88
Co-authored-by: servostar <sven.vogel123@web.de>
Co-committed-by: servostar <sven.vogel123@web.de>
  • Loading branch information
Servostar committed Nov 21, 2024
1 parent bcc5d6b commit 08602bc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 39 deletions.
23 changes: 18 additions & 5 deletions .gitea/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
name: Gitea Action for checking typst compilation
name: Build'n check
run-name: Performing Typst compilation
on: [push]

on:
push:
pull_request:
branches:
- main
jobs:
run-ci-linux:
runs-on: ubuntu-latest
# run action mutally exclusive on PRs or
# push with commit containing "Run-Checks"
if: >
(contains(github.event.head_commit.message, 'Run-Checks') &&
github.event_name == 'push') ||
github.event_name == 'pull_request'
steps:
- name: Check out repository code
uses: actions/checkout@v3
Expand All @@ -16,5 +25,9 @@ jobs:
uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Run CI
run: nix-shell --run ./run-ci.sh
- name: Stylecheck
run: nix-shell --run "./run-fmt.sh --check src/lib.typ"
- id: build
name: Build
run: |
nix-shell --run ./run-ci.sh
34 changes: 0 additions & 34 deletions .gitea/workflows/release.yml

This file was deleted.

0 comments on commit 08602bc

Please sign in to comment.