Skip to content

Commit 2145264

Browse files
cameronmeissnerCameron Meissner
andauthored
chore: refactor required workflows (#131)
Co-authored-by: Cameron Meissner <[email protected]>
1 parent b61ab15 commit 2145264

File tree

8 files changed

+106
-122
lines changed

8 files changed

+106
-122
lines changed

.github/workflows/buf.yaml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/build-client.yaml renamed to .github/workflows/client-build.yaml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
1-
name: Build client binaries
2-
on:
3-
push:
4-
branches:
5-
- main
6-
paths:
7-
- ".github/workflows/build-client.yaml"
8-
- "client/**"
9-
pull_request:
10-
types: [opened, synchronize, reopened, labeled, unlabeled]
11-
paths:
12-
- ".github/workflows/build-client.yaml"
13-
- "client/**"
1+
name: Client Binary Build
2+
on: pull_request
143

154
jobs:
16-
build:
5+
build-client-binaries:
176
runs-on: ubuntu-latest
187
steps:
198
- uses: actions/checkout@v4

.github/workflows/client-coverage.yaml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
1-
name: Client module unit tests
2-
on:
3-
push:
4-
branches:
5-
- main
6-
paths:
7-
- ".github/workflows/client-coverage.yaml"
8-
- "client/**"
9-
pull_request:
10-
types: [opened, synchronize, reopened, labeled, unlabeled]
11-
paths:
12-
- ".github/workflows/client-coverage.yaml"
13-
- "client/**"
1+
name: Client Unit Tests
2+
on: pull_request
143

154
jobs:
16-
unit_tests:
5+
go-test-client-coveralls:
176
runs-on: ubuntu-latest
187
steps:
198
- uses: actions/checkout@v4

.github/workflows/golangci-lint.yaml renamed to .github/workflows/client-golangci-lint.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
name: golangci-lint
2-
on:
3-
push:
4-
branches: ["main"]
1+
name: Client golangci-lint
2+
on: pull_request
53

64
jobs:
7-
golangci:
8-
name: lint
5+
client-golangci-lint:
96
runs-on: ubuntu-latest
107
steps:
118
- uses: actions/checkout@v4
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ main, official/* ]
17+
paths:
18+
- '**.go'
19+
- 'go.*'
20+
pull_request:
21+
# The branches below must be a subset of the branches above
22+
branches: [ main ]
23+
paths:
24+
- '**.go'
25+
- 'go.*'
26+
schedule:
27+
- cron: '27 3 * * 6'
28+
29+
jobs:
30+
analyze:
31+
name: Analyze
32+
runs-on: ubuntu-latest
33+
permissions:
34+
actions: read
35+
contents: read
36+
security-events: write
37+
38+
strategy:
39+
fail-fast: false
40+
matrix:
41+
language: [ 'go' ]
42+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
43+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
44+
45+
steps:
46+
- name: Checkout repository
47+
uses: actions/checkout@v4
48+
49+
# Initializes the CodeQL tools for scanning.
50+
- name: Initialize CodeQL
51+
uses: github/codeql-action/init@v3
52+
with:
53+
languages: ${{ matrix.language }}
54+
# If you wish to specify custom queries, you can do so here or in a config file.
55+
# By default, queries listed here will override any specified in a config file.
56+
# Prefix the list here with "+" to use these queries and those in the config file.
57+
58+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
59+
# queries: security-extended,security-and-quality
60+
61+
62+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
63+
# If this step fails, then you should remove it and run the build manually (see below)
64+
- name: Autobuild
65+
uses: github/codeql-action/autobuild@v3
66+
67+
# ℹ️ Command-line programs to run using the OS shell.
68+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
69+
70+
# If the Autobuild fails above, remove it and uncomment the following three lines.
71+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
72+
73+
# - run: |
74+
# echo "Run, Build Application using script"
75+
# ./location_of_script_within_repo/buildscript.sh
76+
77+
- name: Perform CodeQL Analysis
78+
uses: github/codeql-action/analyze@v3

.github/workflows/codeql.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/golangci-lint-pr.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/service-buf.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Service Buf CI
2+
on:
3+
pull_request:
4+
paths:
5+
- service/**
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
service-buf-ci:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: bufbuild/buf-action@v1
18+
with:
19+
input: service

0 commit comments

Comments
 (0)