Skip to content

Commit

Permalink
improve github action
Browse files Browse the repository at this point in the history
  • Loading branch information
pseidemann committed Aug 19, 2022
1 parent c5b7e11 commit 1240617
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: Go
name: Test

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

jobs:

build:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
strategy:
matrix:
go-version:
- '1.13.0'
- '1.18'
- '1.19'

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
steps:
- uses: actions/checkout@v3

- name: Build
run: go build -v ./...
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}

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

0 comments on commit 1240617

Please sign in to comment.