mirror of
https://github.com/actions/setup-go.git
synced 2025-05-04 14:14:34 +00:00
starting v2 and proxy support
This commit is contained in:
16
.github/go.json
vendored
16
.github/go.json
vendored
@ -1,16 +0,0 @@
|
||||
{
|
||||
"problemMatcher": [
|
||||
{
|
||||
"owner": "go",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^([^:]*: )?((.:)?[^:]*):(\\d+)(:(\\d+))?: (.*)$",
|
||||
"file": 2,
|
||||
"line": 4,
|
||||
"column": 6,
|
||||
"message": 7
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
29
.github/workflows/versions.yml
vendored
Normal file
29
.github/workflows/versions.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
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
|
20
.github/workflows/workflow.yml
vendored
20
.github/workflows/workflow.yml
vendored
@ -1,5 +1,13 @@
|
||||
name: Main workflow
|
||||
on: [push]
|
||||
name: build-test
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
jobs:
|
||||
run:
|
||||
name: Run
|
||||
@ -9,12 +17,12 @@ jobs:
|
||||
operating-system: [ubuntu-latest, windows-latest]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set Node.js 10.x
|
||||
uses: actions/setup-node@master
|
||||
- name: Setup node 12
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
version: 10.x
|
||||
node-version: 12
|
||||
|
||||
- name: npm install
|
||||
run: npm install
|
||||
|
Reference in New Issue
Block a user