Skip to content

Merge pull request #4 from lippoliv/1-init-hello-world-go-module #7

Merge pull request #4 from lippoliv/1-init-hello-world-go-module

Merge pull request #4 from lippoliv/1-init-hello-world-go-module #7

Workflow file for this run

name: Go test
on:
push:
paths:
- .github/workflows/test.yml
- src/**
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- '1.18.*'
- '1.19.*'
- '1.20.*'
- '1.21.*'
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # 4.1.1
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # 5.0.0
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
working-directory: src
run: go get -v .
- name: Test with the Go CLI
working-directory: src
run: go test