Skip to content

ci: skip CodeQL when GitHub cannot accept SARIF #1045

ci: skip CodeQL when GitHub cannot accept SARIF

ci: skip CodeQL when GitHub cannot accept SARIF #1045

Workflow file for this run

name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
build:
name: Go Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: [stable, oldstable]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: ${{ matrix.version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Check
if: runner.os == 'Linux'
run: make check
- name: Go Tests
if: runner.os != 'Linux'
run: go test ./... -count 1 -short
- name: Upload Code Coverage
if: runner.os == 'Linux'
run: bash <(curl -s https://codecov.io/bash)