Skip to content

Commit

Permalink
New loco cli generator (#980)
Browse files Browse the repository at this point in the history
new loco cli generator, new starters concept, new CI process
  • Loading branch information
kaplanelad authored Nov 19, 2024
1 parent 5c4ed5d commit 7a74823
Show file tree
Hide file tree
Showing 164 changed files with 6,955 additions and 617 deletions.
105 changes: 0 additions & 105 deletions .github/workflows/loco-cli-e2e-master.yaml

This file was deleted.

63 changes: 0 additions & 63 deletions .github/workflows/loco-cli-e2e.yaml

This file was deleted.

9 changes: 4 additions & 5 deletions .github/workflows/loco-gen-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ jobs:
uses: Swatinem/rust-cache@v2

- run: |
cargo install --path ../loco-cli
cargo install --path ../loco-new
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
run: cargo test --all-features
env:
LOCO_DEV_MODE_PATH: ${{ github.workspace }}
28 changes: 21 additions & 7 deletions .github/workflows/loco-cli.yml → .github/workflows/loco-new.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: "[loco-cli:ci]"
name: "[loco-new:ci]"

on:
push:
branches:
- master
paths:
- "loco-new/**"
pull_request:
paths:
- "loco-new/**"

env:
RUST_TOOLCHAIN: stable
Expand All @@ -27,13 +31,13 @@ jobs:
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
working-directory: ./loco-cli
working-directory: ./loco-new
- name: Run cargo clippy
run: cargo clippy --all-features -- -D warnings -W clippy::pedantic -W clippy::nursery -W rust-2018-idioms
working-directory: ./loco-cli
working-directory: ./loco-new

test:
needs: [style]
# needs: [style]
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -53,8 +57,18 @@ jobs:
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2

- name: Configure sccache
run: |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Run cargo test
run: cargo test --all-features --all
working-directory: ./loco-cli
run: cargo test --all-features -- --test-threads 1
working-directory: ./loco-new
env:
LOCO_CI_MODE: 1
LOCO_DEV_MODE_PATH: ${{ github.workspace }}
# NOTE NOTE NOTE: this is for optimizing build and may result in strange behavior
CARGO_TARGET_DIR: /tmp/shared-target
2 changes: 1 addition & 1 deletion .github/workflows/loco-rs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --workspace --exclude loco-gen
args: --all-features --workspace --exclude loco-gen --exclude loco
84 changes: 0 additions & 84 deletions .github/workflows/starter-lightweight-service.yml

This file was deleted.

Loading

0 comments on commit 7a74823

Please sign in to comment.