Bump golang.org/x/crypto from 0.16.0 to 0.22.0 (#406) #769
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
on: | |
pull_request: {} | |
push: | |
branches: | |
- master | |
jobs: | |
go: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: ['1.18', '1.19', '1.20', '1.21'] | |
name: Go ${{ matrix.go }} build | |
steps: | |
- uses: actions/checkout@master | |
- name: Setup go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- run: go vet ./... | |
- run: | | |
output=$(go fmt ./...) | |
if [[ ! "$output" = "" ]]; then | |
printf "The following files are not go formatted:\n%s\n" "$output" | |
exit 1 | |
fi | |
- run: go test -coverprofile=coverage.out ./... | |
- run: go tool cover -html=coverage.out -o coverage.html | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
args: -E golint | |
version: v1.51.1 | |
if: matrix.go == '1.21' | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: coverage.html | |
path: coverage.html | |
if: matrix.go == '1.21' | |
- run: make hallow.zip | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: hallow.zip | |
path: hallow.zip | |
if: matrix.go == '1.21' | |
terraform: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
terraform: ['latest'] | |
name: Terraform ${{ matrix.terraform }} | |
steps: | |
- uses: actions/checkout@master | |
- name: terraform fmt | |
uses: hashicorp/[email protected] | |
with: | |
tf_actions_version: ${{ matrix.terraform }} | |
tf_actions_subcommand: 'fmt' | |
tf_actions_working_dir: 'terraform/' | |
tf_actions_comment: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: terraform init | |
uses: hashicorp/[email protected] | |
with: | |
tf_actions_version: ${{ matrix.terraform }} | |
tf_actions_subcommand: 'init' | |
tf_actions_working_dir: 'terraform/' | |
tf_actions_comment: true | |
args: '-backend=false' | |
env: | |
AWS_DEFAULT_REGION: "us-east-1" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: terraform validate | |
uses: hashicorp/[email protected] | |
with: | |
tf_actions_version: ${{ matrix.terraform }} | |
tf_actions_subcommand: 'validate' | |
tf_actions_working_dir: 'terraform/' | |
tf_actions_comment: true | |
env: | |
AWS_DEFAULT_REGION: "us-east-1" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |