Skip to content

Commit

Permalink
Using (partially) the shared workflows (#908)
Browse files Browse the repository at this point in the history
* Using (partially) the shared workflows

* main branch is still called master here

* update deps

* prep for 1.63.5

* get the platforms from correct id

* re try ci with update coverage
  • Loading branch information
ldemailly committed Mar 23, 2024
1 parent 757e321 commit 7fb7162
Show file tree
Hide file tree
Showing 13 changed files with 85 additions and 409 deletions.
14 changes: 0 additions & 14 deletions .circleci/coverage.sh

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/codecov.yml

This file was deleted.

69 changes: 0 additions & 69 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/include.yml
@@ -0,0 +1,32 @@
# Main fortio still use its own build image for now (including linux/ppc64le,linux/s390x additional platforms)
name: "Shared cli/server fortio workflows"
on:
push:
branches: [ master ]
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: [ master ]

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
# call-releaser:
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
# uses: fortio/workflows/.github/workflows/releaser.yml@main
# with:
# description: "Fortio load testing library, command line tool, advanced echo server and web UI in go (golang)"
# secrets:
# GH_PAT: ${{ secrets.GH_PAT }}
# DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
# DOCKER_USER: ${{ secrets.DOCKER_USER }}
27 changes: 8 additions & 19 deletions .github/workflows/main.yml
Expand Up @@ -18,28 +18,17 @@ jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # pin@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # pin@v2

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@0d103c3126aa41d772a8362f6aa67afac040f80c # pin@v2

- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}

- name: Log in to Docker Hub
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # pin@v2
- name: Common Setup
id: common_setup
uses: fortio/workflows/.github/actions/common_setup@main
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}

DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}
- name: Available platforms
run: |
echo "Build platforms: ${{ steps.common_setup.outputs.platforms }}"
- name: Build
id: build
run: |
Expand Down
50 changes: 0 additions & 50 deletions .github/workflows/manual-build.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/test.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
@@ -1,3 +1,5 @@
# linter config now comes from shared workflows
.golangci.yml
tmp/
coverage.txt
*.bak
Expand Down

0 comments on commit 7fb7162

Please sign in to comment.