ci: improve the pipeline to test for the full suite
ci: dont pull in the lfs for teh PR pipeline build ci: checkout without LFS ci: see if using the ref directly will help ci: test a slight modification ci: see if new get ldfs script works ci: test using teh new v8
This commit is contained in:
parent
d0726169ee
commit
854e946a8f
2 changed files with 51 additions and 2 deletions
|
@ -1,9 +1,7 @@
|
|||
on:
|
||||
- pull_request
|
||||
- push
|
||||
- workflow_dispatch
|
||||
|
||||
|
||||
jobs:
|
||||
check_lfs:
|
||||
# nix/docker
|
||||
|
|
51
.forgejo/workflows/on_pr.yaml
Normal file
51
.forgejo/workflows/on_pr.yaml
Normal file
|
@ -0,0 +1,51 @@
|
|||
on:
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
check_lfs:
|
||||
# nix/docker
|
||||
runs-on: nix
|
||||
steps:
|
||||
- uses: https://github.com/MPLew-is/lfs-check-action@1
|
||||
|
||||
# rust code must be formatted for standardisation
|
||||
lint_fmt:
|
||||
# build it using teh base nixos system, helps with caching
|
||||
runs-on: nix
|
||||
steps:
|
||||
# get the repo first
|
||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- uses: https://forgejo.skynet.ie/Skynet/actions/get_lfs/nix@v8
|
||||
with:
|
||||
server_url: ${{ gitea.server_url }}
|
||||
repository: ${{ gitea.repository }}
|
||||
- run: nix build .#fmt --verbose
|
||||
|
||||
# clippy is incredibly useful for making yer code better
|
||||
lint_clippy:
|
||||
# build it using teh base nixos system, helps with caching
|
||||
runs-on: nix
|
||||
permissions:
|
||||
checks: write
|
||||
steps:
|
||||
# get the repo first
|
||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- uses: https://forgejo.skynet.ie/Skynet/actions/get_lfs/nix@v8
|
||||
with:
|
||||
server_url: ${{ gitea.server_url }}
|
||||
repository: ${{ gitea.repository }}
|
||||
- run: nix build .#clippy --verbose
|
||||
|
||||
build:
|
||||
# build it using teh base nixos system, helps with caching
|
||||
runs-on: nix
|
||||
needs: [ lint_fmt, lint_clippy ]
|
||||
steps:
|
||||
# get the repo first
|
||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- uses: https://forgejo.skynet.ie/Skynet/actions/get_lfs/nix@v8
|
||||
with:
|
||||
server_url: ${{ gitea.server_url }}
|
||||
repository: ${{ gitea.repository }}
|
||||
- name: "Build it locally"
|
||||
run: nix build --verbose
|
Loading…
Add table
Add a link
Reference in a new issue