Skip to content

Test install script #136

Test install script

Test install script #136

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
jobs:
validate-assembler:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Bootstrap Action Workspace
id: bootstrap
uses: ./.github/actions/bootstrap
- name: Validate Navigation
run: dotnet run --project src/tooling/docs-assembler -c release -- navigation validate
- name: Validate Content Sources
run: dotnet run --project src/tooling/docs-assembler -c release -- content-source validate
build-lambda:
uses: ./.github/workflows/build-link-index-updater-lambda.yml
lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/Elastic.Markdown
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: npm
cache-dependency-path: src/Elastic.Markdown/package-lock.json
node-version-file: .nvmrc
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Format
run: npm run fmt:check
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v4
- name: Bootstrap Action Workspace
id: bootstrap
uses: ./.github/actions/bootstrap
- name: Build
run: dotnet run --project build -c release
- name: Test
run: dotnet run --project build -c release -- test
- name: Publish AOT
run: dotnet run --project build -c release -- publishbinaries
install-script:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} - ${{ matrix.command }}
env:
INSTALL_SCRIPT: https://raw.githubusercontent.com/elastic/docs-builder/${{ github.sha }}/install.sh
INSTALL_SCRIPT_PWSH: https://raw.githubusercontent.com/elastic/docs-builder/${{ github.sha }}/install.ps1
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
command: curl -sL ${{ env.INSTALL_SCRIPT }} | sh

Check failure on line 98 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 98, Col: 22): Unrecognized named-value: 'env'. Located at position 1 within expression: env.INSTALL_SCRIPT .github/workflows/ci.yml (Line: 100, Col: 22): Unrecognized named-value: 'env'. Located at position 1 within expression: env.INSTALL_SCRIPT
- os: macos-latest
command: curl -sL ${{ env.INSTALL_SCRIPT }} | sh
- os: windows-latest
command: iex (New-Object System.Net.WebClient).DownloadString('https://ela.st/docs-builder-install-win')
steps:
- uses: actions/checkout@v4
- run: ${{ matrix.command }}
- run: docs-builder --help