Skip to content

Commit

Permalink
Merge pull request #360 from meroxa/migrate_cicleci_githubactions
Browse files Browse the repository at this point in the history
chore: Creating GitHub CI Workflow for Cli
  • Loading branch information
JuanP3rAlta23 authored May 27, 2022
2 parents fcdf06d + 73bd51a commit 7ab985b
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI
on:
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ^1.18
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Build
run: |
make build
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: ^1.18
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
vet:
name: Vet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Vet
run: go vet ./...
test:
name: Test
needs: [ build ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ^1.18
- name: Run tests
run: |
make test
env:
GOPATH: /home/runner/work/cli/go

0 comments on commit 7ab985b

Please sign in to comment.