Skip to content

💚 Run go linting only in cli directory #62

💚 Run go linting only in cli directory

💚 Run go linting only in cli directory #62

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
concurrency:
group: github.ref
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run lint
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
working-directory: apps/cli

Check failure on line 29 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: 29, Col: 9): Unexpected value 'working-directory'
with:
version: v1.54
build:
needs: [lint]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build --workspace cli
- name: Get current package version
id: current_version
run: echo "version=$(make version)" >> $GITHUB_OUTPUT
working-directory: apps/cli
- uses: mukunku/[email protected]
id: check_tag
with:
tag: '${{ steps.current_version.outputs.version }}'
- uses: ncipollo/release-action@v1
if: steps.check_tag.outputs.exists == 'false'
with:
tag: '${{ steps.current_version.outputs.version }}'
artifacts: 'apps/cli/bin/*'
generateReleaseNotes: true
makeLatest: true
prerelease: false
replacesArtifacts: true