Skip to content

chore(deps): update github/codeql-action action to v4.31.8 (#495) #1015

chore(deps): update github/codeql-action action to v4.31.8 (#495)

chore(deps): update github/codeql-action action to v4.31.8 (#495) #1015

Workflow file for this run

name: CI
permissions:
contents: read
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
container:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Set up Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version-file: 'go.mod'
- name: Test with code coverage
run: go test ./... -race -covermode=atomic -coverprofile=coverage.txt
- name: Build binaries and Docker image with GoReleaser
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
with:
version: '~> v2'
args: release --snapshot
- name: Make example directory writable for all users
run: chmod o+w example
- name: Run the built Docker image
run: cd example && docker run --workdir /workspace --mount type=bind,source="$(pwd)",target=/workspace ghcr.io/patrickhoefler/cloudbuildgraph:0.0.0
native:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Set up Go
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version-file: 'go.mod'
# Some tests are currently broken on Windows, disable for now
- name: Test
if: runner.os != 'Windows'
run: go test ./...
- name: Build
run: go build
- name: '[macOS] Install graphviz'
if: runner.os == 'macOS'
run: brew install graphviz
- name: '[Ubuntu] Install graphviz'
if: runner.os == 'Linux'
run: sudo apt install --no-install-recommends -y graphviz
- name: '[Windows] Install graphviz'
if: runner.os == 'Windows'
run: choco install graphviz --no-progress
- name: Run the binary
run: cd example && ../cloudbuildgraph