mirror of
https://code.forgejo.org/actions/setup-go.git
synced 2024-11-06 08:45:44 -05:00
30 lines
583 B
YAML
30 lines
583 B
YAML
|
name: go-versions
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
paths-ignore:
|
||
|
- '**.md'
|
||
|
pull_request:
|
||
|
paths-ignore:
|
||
|
- '**.md'
|
||
|
jobs:
|
||
|
run:
|
||
|
name: Go
|
||
|
runs-on: ${{ matrix.operating-system }}
|
||
|
strategy:
|
||
|
matrix:
|
||
|
operating-system: [ubuntu-latest, windows-latest, macos-latest]
|
||
|
version: [1.13, 1.12.9]
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v2
|
||
|
|
||
|
- name: setup-go ${{ matrix.version }}
|
||
|
uses: ./
|
||
|
with:
|
||
|
go-version: ${{ matrix.version}}
|
||
|
|
||
|
- name: go version
|
||
|
run: go version
|