Skip to content

Commit

Permalink
updating ci (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
parithosh authored Dec 1, 2022
1 parent 5131161 commit 17a818a
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,50 +5,42 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:

jobs:

build:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18

- name: Build
run: go build -v ./...

lint:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18

- name: Download golangci-lint
run: wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s latest

- name: Lint
run: ./bin/golangci-lint run

- name: Vet
run: go vet

test:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18

- name: Test
run: go test -v ./...

0 comments on commit 17a818a

Please sign in to comment.