diff --git a/.github/workflows/moon-stub.yml b/.github/workflows/moon-stub.yml new file mode 100644 index 00000000000..27246005f14 --- /dev/null +++ b/.github/workflows/moon-stub.yml @@ -0,0 +1,19 @@ +# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks +name: Moon +on: + pull_request: + paths-ignore: + - packages/** + - website/** + - package.json + - yarn.lock +jobs: + ci: + name: CI + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + node-version: [14, 16, 18] + steps: + - run: 'echo "Not affected, skipping"' diff --git a/.github/workflows/moon.yml b/.github/workflows/moon.yml index 30702ad29ba..a9a743ddce2 100644 --- a/.github/workflows/moon.yml +++ b/.github/workflows/moon.yml @@ -4,6 +4,11 @@ on: branches: - master pull_request: + paths: + - packages/** + - website/** + - package.json + - yarn.lock jobs: ci: name: CI diff --git a/.github/workflows/rust-stub.yml b/.github/workflows/rust-stub.yml new file mode 100644 index 00000000000..10129b8baf9 --- /dev/null +++ b/.github/workflows/rust-stub.yml @@ -0,0 +1,33 @@ +# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks +name: Rust +on: + pull_request: + paths-ignore: + - crates/** + - tests/** + - Cargo.lock + - Cargo.toml + - Makefile.toml + - rust-toolchain.toml +jobs: + format: + name: Format + runs-on: ubuntu-latest + steps: + - run: 'echo "Not affected, skipping"' + lint: + name: Lint + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + steps: + - run: 'echo "Not affected, skipping"' + test: + name: Test + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + steps: + - run: 'echo "Not affected, skipping"' diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2ab904317a6..a61a46622dc 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -4,6 +4,13 @@ on: branches: - master pull_request: + paths: + - crates/** + - tests/** + - Cargo.lock + - Cargo.toml + - Makefile.toml + - rust-toolchain.toml jobs: format: name: Format diff --git a/packages/cli/README.md b/packages/cli/README.md index 2accfb545cb..27f8aa0bf31 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -15,12 +15,11 @@ JavaScript ecosystem, written in Rust! moon can be installed with npm, pnpm, or yarn. ```bash -# Install the dependency and create the binary +# Install the dependency yarn add --dev @moonrepo/cli -yarn install -# Access the Rust binary and initialize moon -$(yarn bin moon) init +# Initialize moon in the repo +npx @moonrepo/cli init ``` ## Usage