ci: run gitea action on PR or optionally push
Build'n check / run-ci-linux (push) Has been skipped
Details
Build'n check / run-ci-linux (push) Has been skipped
Details
This commit is contained in:
parent
8c2dd534b9
commit
1aad551640
|
@ -1,10 +1,16 @@
|
||||||
name: Gitea Action for checking typst compilation
|
name: Build'n check
|
||||||
run-name: Performing Typst compilation
|
run-name: Performing Typst compilation
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
run-ci-linux:
|
run-ci-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: >
|
||||||
|
contains(github.event.head_commit.message, 'Run-Check') ||
|
||||||
|
github.event_name == 'pull_request'
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
@ -16,5 +22,9 @@ jobs:
|
||||||
uses: cachix/install-nix-action@v27
|
uses: cachix/install-nix-action@v27
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- name: Run CI
|
- name: Stylecheck
|
||||||
run: nix-shell --run ./run-ci.sh
|
run: nix-shell --run "./run-fmt.sh --check src/lib.typ"
|
||||||
|
- id: build
|
||||||
|
name: Build
|
||||||
|
run: |
|
||||||
|
nix-shell --run ./run-ci.sh
|
||||||
|
|
Loading…
Reference in New Issue