Skip to content

Commit

Permalink
Merge pull request #2 from fortio/shared_workflows
Browse files Browse the repository at this point in the history
Use shared workflows
  • Loading branch information
ldemailly authored Mar 22, 2024
2 parents f1f5b85 + 035afbe commit 3b2bae9
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 174 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/include.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Same as full workflow (eg from fortio/multicurl) but without the goreleaser step
name: "Shared library fortio workflows"

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
call-gochecks:
uses: fortio/workflows/.github/workflows/gochecks.yml@main
# call-codecov:
# uses: fortio/workflows/.github/workflows/codecov.yml@main
call-codeql:
uses: fortio/workflows/.github/workflows/codeql-analysis.yml@main
permissions:
actions: read
contents: read
security-events: write
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.golangci.yml
# Binaries for programs and plugins
*.exe
*.exe~
Expand Down
174 changes: 0 additions & 174 deletions .golangci.yml

This file was deleted.

8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

lint: .golangci.yml
golangci-lint run

.golangci.yml: Makefile
curl -fsS -o .golangci.yml https://raw.githubusercontent.com/fortio/workflows/main/golangci.yml

.PHONY: lint

0 comments on commit 3b2bae9

Please sign in to comment.