CI: Try running checks and build as a non-root user
Some checks are pending
/ verify (push) Waiting to run
Some checks are pending
/ verify (push) Waiting to run
This commit is contained in:
parent
ab070ebe51
commit
b87571dc45
2 changed files with 15 additions and 6 deletions
|
|
@ -34,17 +34,20 @@ jobs:
|
||||||
- name: Setup additional tooling
|
- name: Setup additional tooling
|
||||||
run: .forgejo/workflows/setup-tools.sh
|
run: .forgejo/workflows/setup-tools.sh
|
||||||
|
|
||||||
|
- name: Create 'test' user
|
||||||
|
run: useradd -m ci
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: just build
|
run: just ci build
|
||||||
|
|
||||||
- name: Format
|
- name: Format
|
||||||
run: just format-assess
|
run: just ci format-assess
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: just lint-assess
|
run: just ci lint-assess
|
||||||
- name: Cargo check
|
- name: Cargo check
|
||||||
run: just check
|
run: just ci check
|
||||||
- name: Test
|
- name: Test
|
||||||
run: just test
|
run: just ci test
|
||||||
- name: Assess test coverage
|
- name: Assess test coverage
|
||||||
run: just cover-assess
|
run: just ci cover-assess
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -433,6 +433,12 @@ default:
|
||||||
choose:
|
choose:
|
||||||
@just --choose
|
@just --choose
|
||||||
|
|
||||||
|
[script, private]
|
||||||
|
ci recipe:
|
||||||
|
id -u ci >/dev/null 2>&1 || useradd -m ci
|
||||||
|
chown -R ci:ci .
|
||||||
|
su ci -c "just {{ recipe }}"
|
||||||
|
|
||||||
alias ch := choose
|
alias ch := choose
|
||||||
|
|
||||||
export CARGO_TERM_COLOR := 'always'
|
export CARGO_TERM_COLOR := 'always'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue