Skip to content

Commit

Permalink
Switch to shared workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Mar 21, 2024
1 parent d59bab7 commit cff6861
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 301 deletions.
67 changes: 0 additions & 67 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/gochecks.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/include.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Shared cli fortio workflows"
on:
push:
branches: [ main ]
tags:
# so a vX.Y.Z-test1 doesn't trigger build
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-pre*'
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
call-releaser:
uses: fortio/workflows/.github/workflows/releaser.yml@main
with:
description: "Fortio multi curl"
secrets:
GH_PAT: ${{ secrets.GH_PAT }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
DOCKER_USER: ${{ secrets.DOCKER_USER }}
38 changes: 0 additions & 38 deletions .github/workflows/releaser.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.golangci.yml

# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
Expand Down
169 changes: 0 additions & 169 deletions .golangci.yml

This file was deleted.

9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ all: tests manual-check
tests:
go test -v ./...

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

lint: .golangci.yml
golangci-lint run


manual-check:
@echo "=========== With Everything: ==========="
go run ./levelsDemo 2>&1 | TZ=UTC go run -race .
Expand All @@ -13,4 +20,4 @@ manual-check:
@echo "=========== Without Color: ==========="
go run ./levelsDemo 2>&1 | go run -race . -no-color

.PHONY: tests manual-check
.PHONY: tests manual-check lint

0 comments on commit cff6861

Please sign in to comment.