From 33d4108adabe8fca2ed14e3d6d38c6afbd70d448 Mon Sep 17 00:00:00 2001 From: Joshua Rich Date: Wed, 24 Apr 2024 21:23:06 +1000 Subject: [PATCH] build(github): :construction_worker: clean up codeql github action --- .github/workflows/security-codeql.yml | 36 +++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/security-codeql.yml b/.github/workflows/security-codeql.yml index 691432daa..00c1a8de2 100644 --- a/.github/workflows/security-codeql.yml +++ b/.github/workflows/security-codeql.yml @@ -16,47 +16,47 @@ jobs: actions: read contents: read runs-on: ubuntu-latest - strategy: fail-fast: false matrix: language: [ 'go' ] - steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - - - name: Install/Cache dependencies - id: cache_pkg_deps - uses: awalsh128/cache-apt-pkgs-action@latest - with: - packages: desktop-file-utils gcc libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev libx11-dev xorg-dev - + - name: Install build dependencies + id: install_packages + run: > + sudo apt-get update && sudo apt-get -y install + desktop-file-utils gcc + libgl1-mesa-dev xserver-xorg-dev + libxcursor-dev libxrandr-dev + libxinerama-dev libxi-dev + libgl1-mesa-dev libxxf86vm-dev + > ${RUNNER_TEMP}/dpkg.log + env: + DEBIAN_FRONTEND: noninteractive - name: Setup Go id: setup_go uses: actions/setup-go@v5 with: go-version: '^1.22' - - name: Install Go dependencies id: install_go_deps run: | go install golang.org/x/tools/cmd/stringer@latest - go install github.com/fyne-io/fyne-cross@latest go install golang.org/x/text/cmd/gotext@latest go install github.com/matryer/moq@latest - - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} - - - name: Build agent - run: | - go generate ./... - go build - + - name: Run go generate + id: go_generate + run: go generate -v ./... + - name: Run go build + id: go_build + run: go build -v - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3 \ No newline at end of file