Fix tests (#709) #37
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
name: Tag | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build: | |
name: Build | |
permissions: | |
id-token: write # required for AWS assume role | |
# This is because the permission block is replacive instead of additive so setting | |
# id-token removes any other permissions the job has and goreleaser need to write contents | |
contents: write | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
terraform: ["1.3.8"] | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '1.18' | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# We need the whole history so that goreleaser can figure out the changes | |
fetch-depth: 0 | |
- name: Install Terraform | |
run: | | |
wget https://releases.hashicorp.com/terraform/${{ matrix.terraform }}/terraform_${{ matrix.terraform }}_linux_amd64.zip -O /tmp/terraform.zip | |
sudo unzip -o -d /usr/local/bin/ /tmp/terraform.zip | |
- uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
aws-region: us-east-1 | |
role-to-assume: arn:aws:iam::043612128888:role/nrd-oss-terragrunt-github-actions-ci | |
- name: Run full tests on releases | |
env: | |
AWS_REGION: us-east-1 | |
run: | | |
make full-test | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@d33b6f6aeabd7fed8bb3fbf32c4d890d29f48545 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |