Bootstrap repo, NexusService.StartOperation #19
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: 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 GitHub Actions / Continuous IntegrationInvalid workflow file
|
||
- 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' }} |