Skip to content

build(deps): Bump actions/upload-artifact from 4.0.0 to 4.1.0 #155

build(deps): Bump actions/upload-artifact from 4.0.0 to 4.1.0

build(deps): Bump actions/upload-artifact from 4.0.0 to 4.1.0 #155

Workflow file for this run

---
# This workflow uses actions that are not certified by GitHub. They are provided
# by a third-party and are governed by separate terms of service, privacy
# policy, and support documentation.
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
mutation:
runs-on: ubuntu-latest
name: Mutation
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
disable-sudo: true
egress-policy: block #audit
allowed-endpoints: >
github.com:443
proxy.golang.org:443
- name: Checkout Source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '>= 1.21'
cache: true
- name: Run mutation tests
run: |
cd ./corefunc && go test -tags=mutation -count=1 -parallel=$(nproc) -timeout 30s -ooze.v=true \
| grep -v "^[[:lower:]]" | grep -v "^)"
unit:
runs-on: ubuntu-latest
name: Unit
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
disable-sudo: true
egress-policy: block #audit
allowed-endpoints: >
github.com:443
proxy.golang.org:443
- name: Checkout Source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '>= 1.21'
cache: true
- name: Run unit tests
run: |
go test -count=1 -parallel=$(nproc) -timeout 30s -v ./corefunc/...
acc:
runs-on: ubuntu-latest
name: Acceptance (${{ matrix.terraform_version }})
strategy:
fail-fast: false
matrix:
terraform_version:
- '1.1'
- '1.2'
- '1.3'
- '1.4'
- '1.5'
- '1.6'
steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
disable-sudo: true
egress-policy: block # audit
allowed-endpoints: >
checkpoint-api.hashicorp.com:443
github.com:443
proxy.golang.org:443
releases.hashicorp.com:443
storage.googleapis.com:443
- name: Checkout Source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '>= 1.21'
cache: true
- name: Install Terraform
uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0
with:
terraform_version: ${{ matrix.terraform_version }}
terraform_wrapper: false
- name: Run acceptance tests
run: |
TF_ACC=1 go test -run=TestAcc -count=1 -parallel=$(nproc) -timeout 30m -v ./corefuncprovider/...