Skip to content

Commit

Permalink
chore: add backports to 0.4000.0 rc.3 (#432)
Browse files Browse the repository at this point in the history
* fix: Skip writing scaffold config for nixified custom templates (#415)

* Add skip_config_check global flag to scaffolding

* Prefer not writing the scaffold config for nixified custom templates

* Fix rustfmt warning

* feat: further improve ci runtime (#414)

* Remove dependency to holochain

* Add rust-cache

* Add cachix nix config

* Add ci job concurrency options

* Update cachix configurations

* Run rust checks/tests outside nix

* add missing components

* Cache rust builds

* Bump holochain deps

* Update rustdocs

* Build cargo deps separately

* refactor flake

* Update maintenance docs

* Add extraPullNames input to cachix actions

* Add nix_build step

* Extend extra-substituters and public-keys in nixConfig

* Fix ci workflow

* Bump client-js version

* fix: Fix misplaced doc comments (#411)

* Fix misplaced doc comments

* Slightly refactor link_type integrity codegen

* feat: Enhance custom template generation (#404)

* feat: Add a new template subcommand to create new custom template bases
from existing templates

* Remove call to wrapCustoTemplate in scaffolding nix flake

* Update custom template docs

* chore: update ui dependencies (#407)

* Bump holochain playground

* Update ui core dependencies

* Update lit dependencies

* Fix cli output lines

* Fix broken css import in lit template

* Revert custom-template changes

* Fix vue templates

* Increase testTimeout

* Remove eslint from lit template

* Fix lit CI failure

* Add missing shared styles

* feat: Reprompt user on invalid input (#402)

* Fix imports

* Merge pull request #428 from holochain/fix/svelte-client-race-condition-0.4

chore: backport svelte race condition to 0.4 and release 0.4000.0-rc.1

* feat: Add ability to go back and modify entry type fields (#418)

* Add go back functionality for hc scaffold entry-type

* address PR comments

* Ensure the fields vec is not empty on change

* Improve text spacing

* Simplify prompt

* Pin typescript version for vue-tsc compatibility

---------

Co-authored-by: matthme <[email protected]>
  • Loading branch information
c12i and matthme authored Dec 12, 2024
1 parent 78bca49 commit 5b3e8d5
Show file tree
Hide file tree
Showing 172 changed files with 1,559 additions and 7,229 deletions.
84 changes: 60 additions & 24 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,53 @@
name: "test"
name: "scaffolding-ci"

on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches: [develop, develop-0.1, develop-0.2, develop-0.4]
branches: [develop, develop-0.4]
pull_request:
branches: [develop, develop-0.1, develop-0.2, develop-0.4]
branches: [develop, develop-0.4]

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

jobs:
test_fmt_lint:
cargo_test:
name: cargo_test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.80.0
- uses: Swatinem/rust-cache@v2
- run: cargo test --no-fail-fast

rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.80.0
components: rustfmt
- run: cargo fmt --all -- --check

clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.80.0
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy -- -D warnings

nix_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -24,31 +62,24 @@ jobs:
remove-docker-images: "true"

- name: Install nix
uses: cachix/install-nix-action@v27
uses: cachix/install-nix-action@v30
with:
install_url: https://releases.nixos.org/nix/nix-2.24.4/install

- uses: cachix/cachix-action@v15
with:
name: holochain-ci

- name: rustfmt check
run: |
cd $GITHUB_WORKSPACE
nix develop .#ci --command cargo fmt --all --check
- name: clippy check
run: |
cd $GITHUB_WORKSPACE
nix develop .#ci --command cargo clippy --all-features --all-targets -- -D warnings
name: holochain-scaffolding-cli
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
extraPullNames: holochain-ci

- name: unittests
- name: Build
run: |
cd $GITHUB_WORKSPACE
nix develop .#ci --command cargo test --no-fail-fast
nix develop --accept-flake-config .#ci --command echo 'test'
testbuild:
runs-on: ubuntu-latest
needs: [nix_build]
strategy:
matrix:
template: [svelte, vue, lit, react, vanilla]
Expand All @@ -65,21 +96,24 @@ jobs:
remove-docker-images: "true"

- name: Install nix
uses: cachix/install-nix-action@v27
uses: cachix/install-nix-action@v30
with:
install_url: https://releases.nixos.org/nix/nix-2.24.4/install

- uses: cachix/cachix-action@v15
with:
name: holochain-ci
name: holochain-scaffolding-cli
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
extraPullNames: holochain-ci

- name: Build and test
run: |
cd $GITHUB_WORKSPACE
nix develop .#ci --command ./run_test.sh -t ${{ matrix.template }}
nix develop --accept-flake-config .#ci --command ./run_test.sh -t ${{ matrix.template }}
testbuild_by_scope:
runs-on: ubuntu-latest
needs: [nix_build]
strategy:
matrix:
scope:
Expand All @@ -98,15 +132,17 @@ jobs:
remove-docker-images: "true"

- name: Install nix
uses: cachix/install-nix-action@v27
uses: cachix/install-nix-action@v30
with:
install_url: https://releases.nixos.org/nix/nix-2.24.4/install

- uses: cachix/cachix-action@v15
with:
name: holochain-ci
name: holochain-scaffolding-cli
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
extraPullNames: holochain-ci

- name: Build and test
run: |
cd $GITHUB_WORKSPACE
nix develop .#ci --command ./run_test.sh -s ${{ matrix.scope }}
nix develop --accept-flake-config .#ci --command ./run_test.sh -s ${{ matrix.scope }}
Loading

0 comments on commit 5b3e8d5

Please sign in to comment.