Skip to content

Test windows #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 23 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
name: CI
on:
push:
branches: [ "main" ]
branches:
- master
- main
pull_request:
branches: [ "main" ]
workflow_dispatch:

permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read

jobs:
build:
golangci:
name: lint
runs-on: windows-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v3

- name: Run a one-line script
run: echo "::error file=.github\workflows\test.yml,line=10,col=4::some issue (sample-linter)"
- name: Checkout code
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: "1.21.x"
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout=12m
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/surik/test-github-annotations

go 1.21.1
11 changes: 11 additions & 0 deletions main/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package main

import "fmt"

func main() {
fmt.Println("Hello")
}

func f() (*string, error) {
return nil, nil
}