mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-23 21:22:58 +07:00
ci: run pre-commit on master too
This commit is contained in:
parent
8547e13acc
commit
8a63ec3253
@ -6,7 +6,7 @@ spec:
|
||||
workspaces:
|
||||
- name: shared-data
|
||||
tasks:
|
||||
- name: git-clone
|
||||
- name: clone
|
||||
taskRef:
|
||||
resolver: hub
|
||||
params:
|
||||
@ -24,4 +24,22 @@ spec:
|
||||
value: $(params.git_url)
|
||||
- name: revision
|
||||
value: $(params.git_revision)
|
||||
# TODO add tests here
|
||||
- name: test
|
||||
workspaces:
|
||||
- name: source
|
||||
workspace: shared-data
|
||||
taskSpec:
|
||||
workspaces:
|
||||
- name: source
|
||||
stepTemplate:
|
||||
image: nixos/nix:latest
|
||||
workingDir: /workspace/source
|
||||
steps:
|
||||
# TODO optimize Nix cache, this is too slow
|
||||
- name: pre-commit
|
||||
command:
|
||||
- nix-shell
|
||||
- --command
|
||||
args:
|
||||
- "pre-commit run --color=always"
|
||||
# TODO run more tests here
|
||||
|
@ -6,7 +6,7 @@ spec:
|
||||
workspaces:
|
||||
- name: shared-data
|
||||
tasks:
|
||||
- name: git-clone
|
||||
- name: clone
|
||||
taskRef:
|
||||
resolver: hub
|
||||
params:
|
||||
@ -24,7 +24,7 @@ spec:
|
||||
value: $(params.git_url)
|
||||
- name: revision
|
||||
value: $(params.git_revision)
|
||||
- name: pre-commit
|
||||
- name: test
|
||||
workspaces:
|
||||
- name: source
|
||||
workspace: shared-data
|
||||
@ -35,7 +35,8 @@ spec:
|
||||
image: nixos/nix:latest
|
||||
workingDir: /workspace/source
|
||||
steps:
|
||||
- name: run
|
||||
# TODO optimize Nix cache, this is too slow
|
||||
- name: pre-commit
|
||||
command:
|
||||
- nix-shell
|
||||
- --command
|
||||
|
Loading…
Reference in New Issue
Block a user