Skip to content

Commit

Permalink
ci: crated go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zeim839 authored Dec 19, 2023
1 parent ea1d72d commit ac2ff13
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Go

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

jobs:

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

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

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

- name: Vet
run: go vet -v ./...

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

static:
runs-on: ubuntu-latest
steps:
- uses: dominikh/[email protected]
with:
version: "2022.1.1"

0 comments on commit ac2ff13

Please sign in to comment.