Skip to content

Bootstrap repo, NexusService.StartOperation #19

Bootstrap repo, NexusService.StartOperation

Bootstrap repo, NexusService.StartOperation #19

Workflow file for this run

name: Continuous Integration
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- "releases/*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
lint-and-test:
strategy:
fail-fast: false
matrix:
# Verify scripts run on any OS
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
# with:
# go-version: 1.20
- name: Install protoc
uses: arduino/setup-protoc@v2
with:
version: "23.x"
repo-token: ${{ secrets.GITHUB_TOKEN }}
# - name: Set GOPATH
# run: echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
- name: Build CLI
run: go build -o scripts ./cmd
- name: Download tool dependencies
run: ${{ env.SCRIPTS }} install-deps
env:
SCRIPTS: ${{ startsWith(matrix.os, "windows-") && 'scripts' || './scripts' }}

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

View workflow run for this annotation

GitHub Actions / Continuous Integration

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 39, Col: 20): Unexpected symbol: '"windows-"'. Located at position 23 within expression: startsWith(matrix.os, "windows-") && 'scripts' || './scripts' .github/workflows/ci.yml (Line: 43, Col: 20): Unexpected symbol: '"windows-"'. Located at position 23 within expression: startsWith(matrix.os, "windows-") && 'scripts' || './scripts'
- name: Lint
run: ${{ env.SCRIPTS }} lint
env:
SCRIPTS: ${{ startsWith(matrix.os, "windows-") && 'scripts' || './scripts' }}
- name: Test
run: ${{ env.SCRIPTS }} test
env:
SCRIPTS: ${{ startsWith(matrix.os, "windows-") && 'scripts' || './scripts' }}