mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-17 00:13:17 +00:00
Low-hanging optimizations for CI pipelines (#75)
This PR attempts to avoid bankrupting the company by running 15 minutes of unit tests on unchanged code or re-downloading `@fortawesome/fontawesome-pro` 5 times for every PR commit.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
name: Run formatter, linter and tests
|
||||
name: Run formatter and linter
|
||||
on:
|
||||
merge_group:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
@@ -21,8 +19,8 @@ jobs:
|
||||
- name: Check Rust formatting
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
lint-and-test:
|
||||
timeout-minutes: 30
|
||||
lint:
|
||||
timeout-minutes: 10
|
||||
strategy:
|
||||
max-parallel: 1
|
||||
runs-on: ubuntu-latest
|
||||
@@ -40,6 +38,10 @@ jobs:
|
||||
- uses: dtolnay/rust-toolchain@1.76
|
||||
with:
|
||||
components: clippy
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
cache: npm
|
||||
- name: Install Linux dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
@@ -55,5 +57,5 @@ jobs:
|
||||
git remote set-branches origin main
|
||||
git fetch --depth 1 origin main
|
||||
git branch main origin/main
|
||||
- name: Run Nx-configured `lint` and `test` targets
|
||||
run: npx nx affected -t lint test --base=main --head=HEAD
|
||||
- name: Run Nx-configured `lint` targets
|
||||
run: npx nx affected -t lint --base=main --head=HEAD
|
||||
|
||||
Reference in New Issue
Block a user