Bump golang.org/x/crypto from 0.14.0 to 0.15.0 #220
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 2022 Yahoo Inc. | |
# Licensed under the terms of the Apache License 2.0. Please see LICENSE file in project root for terms. | |
name: CI-Tests | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: read-all | |
jobs: | |
unit-tests: | |
name: Run ${{matrix.go}} unit tests on ${{matrix.os}} | |
permissions: | |
contents: read | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, macos-latest ] | |
go: [ '1.20.x', '1.21.x' ] | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423 # v2.6.0 | |
with: | |
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | |
- name: checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds | |
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 | |
with: | |
# In order: | |
# * Module download cache | |
# * Build cache (Linux) | |
path: | | |
~/go/pkg/mod | |
~/.cache/go-build | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Setup go | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Install required packages for ubuntu | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get install -y libpam0g-dev | |
- name: Update xcode | |
if: matrix.os == 'macos-latest' | |
uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: latest-stable | |
- name: Run Go vet | |
run: go vet -v ./... | |
- name: Run Go build | |
run: go build ./cmd/... | |
- name: Run Go tests | |
run: go test -covermode atomic -coverprofile coverage.txt ./... | |
- name: Upload Coverage Report | |
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 | |
with: | |
file: ./coverage.txt | |
- name: Run Go tests with `-race` | |
run: go test -v -race ./... | |