Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
Ephemeral
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Volkor Barbarian Warrior
Ephemeral
Commits
dbe09b9e
Unverified
Commit
dbe09b9e
authored
2 years ago
by
Volkor Barbarian Warrior
Browse files
Options
Downloads
Patches
Plain Diff
merge jobs
parent
37fac9f2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitea/workflows/test.yaml
+7
-32
7 additions, 32 deletions
.gitea/workflows/test.yaml
with
7 additions
and
32 deletions
.gitea/workflows/test.yaml
+
7
−
32
View file @
dbe09b9e
#
name: Format, check and test
#
I've merged all these into a single job since it's /way/ faster. caching should work for other jobs like building
name
:
format, check and test
on
:
[
push
,
pull_request
]
jobs
:
cache
:
name
:
cargo-cache
fmt-check-test
:
name
:
format check and test
runs-on
:
ubuntu-latest
steps
:
-
uses
:
https://github.com/actions/checkout@v3
-
uses
:
https://github.com/dtolnay/rust-toolchain@stable
-
uses
:
https://github.com/Swatinem/rust-cache@v2
format
:
name
:
cargo fmt
runs-on
:
ubuntu-latest
steps
:
-
uses
:
https://github.com/actions/checkout@v3
-
uses
:
https://github.com/dtolnay/rust-toolchain@stable
-
uses
:
https://github.com/Swatinem/rust-cache@v2
-
uses
:
https://github.com/dtolnay/rust-toolchain@stable
with
:
components
:
rustfmt
components
:
rustfmt
, clippy
-
run
:
cargo fmt -- --all-features
clippy
:
name
:
cargo clippy
runs-on
:
ubuntu-latest
steps
:
-
uses
:
https://github.com/actions/checkout@v3
-
uses
:
https://github.com/dtolnay/rust-toolchain@stable
with
:
components
:
clippy
-
uses
:
https://github.com/Swatinem/rust-cache@v2
-
run
:
cargo clippy --all-features
test
:
name
:
cargo test
runs-on
:
ubuntu-latest
steps
:
-
uses
:
https://github.com/actions/checkout@v3
-
uses
:
https://github.com/dtolnay/rust-toolchain@stable
-
uses
:
https://github.com/Swatinem/rust-cache@v2
-
run
:
cargo test --all-features
\ No newline at end of file
-
run
:
cargo test --all-features
-
uses
:
https://github.com/Swatinem/rust-cache@v2
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment