Skip to content

Bump golang.org/x/crypto from 0.21.0 to 0.31.0 #165

Bump golang.org/x/crypto from 0.21.0 to 0.31.0

Bump golang.org/x/crypto from 0.21.0 to 0.31.0 #165

Workflow file for this run

# Copied from https://github.com/hashicorp/terraform-provider-scaffolding-framework
# with changes:
# * use released terraform 1.8.4
# Terraform Provider testing workflow.
name: Tests
# This GitHub action runs your tests for each pull request and push.
# Optionally, you can turn it on using a schedule for regular testing.
on:
pull_request:
paths-ignore:
- 'README.md'
push:
paths-ignore:
- 'README.md'
# Testing only needs permissions to read the repository contents.
permissions:
contents: read
jobs:
# Ensure project builds before running testing matrix
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: 'go.mod'
cache: true
- run: go mod download
- run: go build -v .
- name: Run linters
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
with:
version: latest
build-testdata:
name: Build Test Data
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- run: echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install ic-wasm
run: |
mkdir -p "$HOME/.local/bin"
curl -sSL https://github.com/dfinity/ic-wasm/releases/download/0.7.1/ic-wasm-linux64 -o "$HOME/.local/bin/ic-wasm"
chmod +x "$HOME/.local/bin/ic-wasm"
ic-wasm --help
- name: Rust setup
run: |
rustup default 1.76.0
rustup target add wasm32-unknown-unknown
- name: Build test data
run: make testdata
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: hello-world-wasm
path: test/testdata/canisters/hello_world/hello-world.wasm
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: 'go.mod'
cache: true
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
with:
terraform_version: '1.8.4'
terraform_wrapper: false
- run: go generate ./...
- name: git diff
run: |
git diff --compact-summary --exit-code || \
(echo; echo "Unexpected difference in directories after code generation. Run 'go generate ./...' command and commit."; exit 1)
# Run acceptance tests in a matrix with Terraform CLI versions
test:
name: Terraform Provider Acceptance Tests
needs: [build, build-testdata]
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
# list whatever Terraform versions here you would like to support
terraform:
- '1.0.*'
- '1.1.*'
- '1.2.*'
- '1.3.*'
- '1.4.*'
- '1.8.*'
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: 'go.mod'
cache: true
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- run: go mod download
- name: Install dfx
uses: dfinity/setup-dfx@e50c04f104ee4285ec010f10609483cf41e4d365
with:
dfx-version: "0.20.0"
- run: dfx start --background
- uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
with:
name: hello-world-wasm
path: test/testdata/canisters/hello_world/
- run: ls -lah test/testdata/canisters/hello_world/hello-world.wasm
- env:
TF_ACC: "1"
run: go test -v -cover ./internal/provider/
timeout-minutes: 10