Skip to content

BKTCLT-18 vendor

BKTCLT-18 vendor #201

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 and golangci-lint
run: |
go install github.com/onsi/ginkgo/v2/[email protected]
go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Run go linter
run: make lint
- name: Run unit tests
run: make test-coverage