NOISSUE - Refactor CI #34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) Ultraviolet | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Continuous Integration | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/cd.yaml" | |
- "**.go" | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/cd.yaml" | |
- "**.go" | |
workflow_dispatch: | |
jobs: | |
lint-and-build: # Linting and building are combined to save time for setting up Go | |
name: Lint and Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.x | |
cache-dependency-path: "go.sum" | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.61.0 | |
args: --config ./.golangci.yaml | |
- name: Build proxy | |
run: | | |
make all |