Skip to content

BKTCLT-18 [squash] add working-directory to golangci-lint #205

BKTCLT-18 [squash] add working-directory to golangci-lint

BKTCLT-18 [squash] add working-directory to golangci-lint #205

Workflow file for this run

name: tests
on:
push:
branches-ignore:
- 'development/**'
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: install dependencies
run: yarn install --immutable --network-concurrency=1
- name: run lint
run: yarn run --silent lint -- --max-warnings 0
- name: set host bucketclient.testing.local
run: sudo bash -c 'echo "127.0.0.1 bucketclient.testing.local" >> /etc/hosts'
- name: run test
run: yarn run --silent test
go-client-test:
name: Test the Go client
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
working-directory: go-client/
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Install ginkgo
run: |
go install github.com/onsi/ginkgo/v2/[email protected]
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
working-directory: go-client
version: v1.61
- name: Run unit tests
run: make test-coverage