Skip to content

Merge pull request #14 from nats-io/bump-deps #66

Merge pull request #14 from nats-io/bump-deps

Merge pull request #14 from nats-io/bump-deps #66

Workflow file for this run

name: Go
on: [push]
jobs:
V0:
name: V0
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.21"]
env:
GOPATH: /home/runner/work/cliprompts
GO111MODULE: "on"
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{matrix.go}}
- name: Install deps
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Lint
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
golangci-lint run
- name: Test
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
go test ./...
V2:
name: V2
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.21"]
env:
GOPATH: /home/runner/work/cliprompts
GO111MODULE: "on"
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{matrix.go}}
- name: Install deps
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Lint
shell: bash --noprofile --norc -x -eo pipefail {0}
working-directory: ./v2
run: |
golangci-lint run
- name: Test
working-directory: ./v2
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
go test ./...