fixed some packaging problems with new combined cli/core #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR CLI Release Tests | |
on: | |
pull_request: | |
jobs: | |
package: | |
runs-on: ${{ matrix.runner }} | |
env: | |
TERM: xterm | |
strategy: | |
fail-fast: false | |
matrix: | |
runner: | |
- macos-14 | |
- ubuntu-24.04 | |
node-version: | |
- '20' | |
os: | |
- linux | |
- macos | |
- win | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install node ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
- name: Install dependencies | |
run: npm clean-install --prefer-offline --frozen-lockfile --production | |
- name: Install plugins | |
run: scripts/fatcore-install.sh | |
- name: Prepare Release | |
uses: lando/prepare-release-action@v3 | |
with: | |
version: dev | |
sync: false | |
- name: Package into node binary | |
uses: lando/pkg-action@v5 | |
id: pkg-action | |
with: | |
entrypoint: bin/lando | |
node-version: ${{ matrix.node-version }} | |
os: ${{ matrix.os }} | |
options: --options dns-result-order=ipv4first | |
pkg: "@yao-pkg/[email protected]" | |
- name: Ensure fatcore | |
if: matrix.os == 'linux' && runner.os == 'Linux' && runner.arch == 'X64' | |
run: | | |
./dist/@lando/core config --path fatcore | grep true | |
./dist/@lando/core config --path plugins | grep -q "node_modules/@lando/wordpress" | |
- name: Ensure ipv4first | |
if: matrix.os == 'linux' && runner.os == 'Linux' && runner.arch == 'X64' | |
run: ./dist/@lando/core config --path cli.args | grep dns-result-order=ipv4first | |
- name: Ensure version | |
if: matrix.os == 'linux' && runner.os == 'Linux' && runner.arch == 'X64' | |
run: ./dist/@lando/core version --all | |