diff --git a/.github/workflows/publish-github-release.yml b/.github/workflows/publish-github-release.yml index d8b7231..e76ee30 100644 --- a/.github/workflows/publish-github-release.yml +++ b/.github/workflows/publish-github-release.yml @@ -68,9 +68,7 @@ jobs: - os: macos-13 target: x86_64-apple-darwin fail-fast: false - runs-on: ${{ matrix.os }} - steps: - name: Checkout Code uses: actions/checkout@v3 @@ -124,59 +122,58 @@ jobs: with: name: ${{ matrix.target }}.sha256 path: ${{ matrix.target }}.sha256 + e2e-testing: + name: E2E testing + needs: build + strategy: + matrix: + include: + # Linux targets + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + # Windows targets + - os: windows-latest + target: x86_64-pc-windows-msvc + - os: windows-latest + target: i686-pc-windows-msvc + # macOS targets + - os: macos-14 + target: aarch64-apple-darwin + - os: macos-13 + target: x86_64-apple-darwin + fail-fast: false + runs-on: ${{ matrix.os }} + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + override: true + target: ${{ matrix.target }} - e2e-testing: - name: E2E testing - needs: build - strategy: - matrix: - include: - # Linux targets - - os: ubuntu-latest - target: x86_64-unknown-linux-gnu - # Windows targets - - os: windows-latest - target: x86_64-pc-windows-msvc - - os: windows-latest - target: i686-pc-windows-msvc - # macOS targets - - os: macos-14 - target: aarch64-apple-darwin - - os: macos-13 - target: x86_64-apple-darwin - fail-fast: false - runs-on: ${{ matrix.os }} - steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - profile: minimal - override: true - target: ${{ matrix.target }} - - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - name: ${{ matrix.target }} - path: . + - name: Download artifacts + uses: actions/download-artifact@v4 + with: + name: ${{ matrix.target }} + path: . - - name: Tar downloaded files - shell: bash - run: | - tar -xvf ${{ matrix.target }}.tar.gz -C e2e/tests - cd e2e/tests - ls -R - - name: e2e tests - run: | - cargo test --package e2e -- --nocapture + - name: Tar downloaded files + shell: bash + run: | + tar -xvf ${{ matrix.target }}.tar.gz -C e2e/tests + cd e2e/tests + ls -R + - name: e2e tests + run: | + cargo test --package e2e -- --nocapture publish: name: Publish To Github Release runs-on: ubuntu-latest - needs: build-and-test + needs: e2e-testing steps: - uses: actions/download-artifact@v4 - name: Display structure of downloaded files @@ -196,7 +193,7 @@ jobs: contents: write name: Generate And Upload Homebrew snm.rb File runs-on: ubuntu-latest - needs: publish-github-release + needs: publish steps: - uses: actions/download-artifact@v4 with: diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 5904d44..9df2f18 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snm" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" authors = ["ityuany"] diff --git a/crates/cli_node/Cargo.toml b/crates/cli_node/Cargo.toml index 4355d3c..6acac69 100644 --- a/crates/cli_node/Cargo.toml +++ b/crates/cli_node/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cli_node" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/cli_npm/Cargo.toml b/crates/cli_npm/Cargo.toml index d554680..ad92589 100644 --- a/crates/cli_npm/Cargo.toml +++ b/crates/cli_npm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cli_npm" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/cli_npx/Cargo.toml b/crates/cli_npx/Cargo.toml index 9d9c7f2..0419d85 100644 --- a/crates/cli_npx/Cargo.toml +++ b/crates/cli_npx/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cli_npx" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/cli_pnpm/Cargo.toml b/crates/cli_pnpm/Cargo.toml index a6f147e..4c6d420 100644 --- a/crates/cli_pnpm/Cargo.toml +++ b/crates/cli_pnpm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cli_pnpm" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/cli_pnpx/Cargo.toml b/crates/cli_pnpx/Cargo.toml index 02263e1..63a6d39 100644 --- a/crates/cli_pnpx/Cargo.toml +++ b/crates/cli_pnpx/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cli_pnpx" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/cli_yarn/Cargo.toml b/crates/cli_yarn/Cargo.toml index 6576891..d6ae418 100644 --- a/crates/cli_yarn/Cargo.toml +++ b/crates/cli_yarn/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cli_yarn" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/dev-tools/Cargo.toml b/crates/dev-tools/Cargo.toml index 20bc9fe..64bd61c 100644 --- a/crates/dev-tools/Cargo.toml +++ b/crates/dev-tools/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dev-tools" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/snm_atom/Cargo.toml b/crates/snm_atom/Cargo.toml index c188e4e..afd7bcd 100644 --- a/crates/snm_atom/Cargo.toml +++ b/crates/snm_atom/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snm_atom" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/snm_config/Cargo.toml b/crates/snm_config/Cargo.toml index e7d3046..11610a3 100644 --- a/crates/snm_config/Cargo.toml +++ b/crates/snm_config/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "snm_config" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/snm_download_builder/Cargo.toml b/crates/snm_download_builder/Cargo.toml index 88026b6..a52f9ec 100644 --- a/crates/snm_download_builder/Cargo.toml +++ b/crates/snm_download_builder/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snm_download_builder" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/snm_ni/Cargo.toml b/crates/snm_ni/Cargo.toml index 8d7ac5e..7e47baa 100644 --- a/crates/snm_ni/Cargo.toml +++ b/crates/snm_ni/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snm_ni" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/snm_node_version/Cargo.toml b/crates/snm_node_version/Cargo.toml index e4726ae..a118f42 100644 --- a/crates/snm_node_version/Cargo.toml +++ b/crates/snm_node_version/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snm_node_version" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/snm_npmrc/Cargo.toml b/crates/snm_npmrc/Cargo.toml index 3dc45c8..c6eed45 100644 --- a/crates/snm_npmrc/Cargo.toml +++ b/crates/snm_npmrc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snm_npmrc" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/snm_package_json/Cargo.toml b/crates/snm_package_json/Cargo.toml index 76995bd..f5df19b 100644 --- a/crates/snm_package_json/Cargo.toml +++ b/crates/snm_package_json/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snm_package_json" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/snm_shim/Cargo.toml b/crates/snm_shim/Cargo.toml index d4e76be..5a9fa17 100644 --- a/crates/snm_shim/Cargo.toml +++ b/crates/snm_shim/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snm_shim" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/snm_tarball/Cargo.toml b/crates/snm_tarball/Cargo.toml index e45b900..0184a36 100644 --- a/crates/snm_tarball/Cargo.toml +++ b/crates/snm_tarball/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snm_tarball" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/crates/snm_utils/Cargo.toml b/crates/snm_utils/Cargo.toml index 07cdf7a..7af35fc 100644 --- a/crates/snm_utils/Cargo.toml +++ b/crates/snm_utils/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "snm_utils" -version = "0.0.1-109" +version = "0.0.1-110" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html