Skip to content

rename repo to qiniu/go-cdk-driver #6

rename repo to qiniu/go-cdk-driver

rename repo to qiniu/go-cdk-driver #6

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
go-version: [1.21.x]
include:
- go-version: 1.20.x
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Format
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
- name: Golint
run: |
set -e
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck -go 1.20 ./...
- name: Run Tests
run: |
set -e
go test -v ./...
shell: bash