Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jkieboom committed Jun 15, 2024
1 parent 593b49b commit ef356de
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 64 deletions.
36 changes: 15 additions & 21 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,29 @@ name: Go

on:
push:
branches: [ "master" ]
branches: ["master"]
pull_request:
branches: [ "master" ]
branches: ["master"]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- uses: actions/checkout@v4

- name: Build
run: go build -v ./...
- name: setup
uses: actions/setup-go@v4
with:
go-version: "1.20"

- name: Install dependencies
run: go get -v golang.org/x/lint/golint
- name: build
run: go build -v ./...

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

- name: Format
run: exit $(gofmt -l . | wc -l)
- name: gofmt
run: exit $(gofmt -l . | wc -l)

- name: Linting
run: |
go tool vet -all=true -v=true . || true
$(go env GOPATH | awk 'BEGIN{FS=":"} {print $1}')/bin/golint ./...
- name: vet
run: go vet -all=true -v=true .
43 changes: 0 additions & 43 deletions .travis.yml

This file was deleted.

0 comments on commit ef356de

Please sign in to comment.