Skip to content

build(deps): Bump github/codeql-action from 2.22.7 to 2.22.8 #69

build(deps): Bump github/codeql-action from 2.22.7 to 2.22.8

build(deps): Bump github/codeql-action from 2.22.7 to 2.22.8 #69

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@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.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@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.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@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.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/...