Install pwsh(PowerShell) and the profile also in Linux and Darwin #216
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/golang/go/issues/59968 | |
name: ΚβΟβΚ | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/ci-go.yml' | |
- '**.go' | |
- 'go.*' | |
- 'testdata/**' | |
- 'Makefile.toml' | |
pull_request: | |
paths: | |
- '.github/workflows/ci-go.yml' | |
- '**.go' | |
- 'go.*' | |
- 'testdata/**' | |
- 'Makefile.toml' | |
workflow_dispatch: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-14 # M1 - https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/ | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
cache-dependency-path: 'go.sum' | |
- run: go test ./... | |
- run: go build -v -race ./... | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
cache-dependency-path: 'go.sum' | |
- name: check format | |
run: go fmt ./... && git add --intent-to-add . && git diff --exit-code | |
- run: go vet ./... |