Skip to content

Allow to run workflow manually #23

Allow to run workflow manually

Allow to run workflow manually #23

Workflow file for this run

name: Go
on:
workflow_dispatch:
branches: [ "main" ]
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.18', 'oldstable', 'stable' ]
steps:
- uses: actions/checkout@v4
- name: Setup
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
cache: false
- name: Build
run: go build -v ./...
- name: Test
run: go test -json ./... > TestResults-${{ matrix.go-version }}.json
- name: Upload
uses: actions/upload-artifact@v4
with:
name: Go-results-${{ matrix.go-version }}
path: TestResults-${{ matrix.go-version }}.json