Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added circleci as gh action YAML #1281

Merged
merged 2 commits into from Jun 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/Circle-ci.yml
@@ -0,0 +1,45 @@
name: Test and Lint

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
go_version: ["1.18", "1.19", "1.20"]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Go ${{ matrix.go_version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go_version }}

- name: Cache Go modules
id: cache
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: v1-go${{ matrix.go_version }}

- name: Run tests and check license
run: make check_license test
env:
CI: true

- name: Run lint
run: make lint
krishnaduttPanchagnula marked this conversation as resolved.
Show resolved Hide resolved

- name: Run style and unused
if: ${{ matrix.go_version == '1.20' }}
run: make style unused