Update go.yml

This commit is contained in:
Lerking
2023-02-17 09:51:40 +01:00
committed by GitHub
parent 415e9be473
commit 3f9ca6b6f6
+5 -7
View File
@@ -3,15 +3,11 @@
name: Go name: Go
on: on: [push]
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
@@ -19,11 +15,13 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup Go ${{ matrix.go-version }} - name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v3 uses: actions/setup-go@v3
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
# You can test your matrix by printing the current Go version
- name: Display Go version
run: go version
- name: Build - name: Build
run: go build -v ./... run: go build -v ./...