Skip to content

Upgrade Golang Dependencies #2024

Upgrade Golang Dependencies

Upgrade Golang Dependencies #2024

Workflow file for this run

name: Code quality checks
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
GOOS: linux
GO111MODULE: on
jobs:
resolve-modules:
name: Resolve Modules
runs-on: ubuntu-20.04
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout Sources
uses: actions/checkout@v4
- id: set-matrix
run: ./utils/golangci-lint/resolve-modules.sh
golangci:
name: GolangCI Lint
needs: resolve-modules
runs-on: ubuntu-20.04
strategy:
matrix: ${{ fromJson(needs.resolve-modules.outputs.matrix) }}
fail-fast: false
env:
GOPRIVATE_KEY: ${{ secrets.XDT_REPO_ACCESS_KEY }}
GOPRIVATE: "github.com/ease-lab/vhive-xdt"
steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Checkout code into go module directory
uses: actions/checkout@v4
- run: git config --global url."https://ease-lab:$(echo $GOPRIVATE_KEY)@github.com/ease-lab/vhive-xdt".insteadOf "https://github.com/ease-lab/vhive-xdt"
- name: Lint with golangci-lint
uses: golangci/golangci-lint-action@v6.0.1
with:
working-directory: ${{ matrix.workdir }}
skip-cache: true
skip-pkg-cache: true
skip-build-cache: true
args: --timeout=3m