Skip to content

resourceop account: allow delegating services to accounts #275

resourceop account: allow delegating services to accounts

resourceop account: allow delegating services to accounts #275

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Run Setup
run: ./setup.sh
- name: Build
run: go build -v ./...
- name: Start LocalStack
uses: LocalStack/setup-localstack@main
with:
image-tag: 'latest'
install-awslocal: 'true'
use-pro: 'true'
env:
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
- name: Setup aws credentials
run: |
mkdir -p ~/.aws
echo "[default]" > ~/.aws/credentials
echo "aws_access_key_id = localstack" >> ~/.aws/credentials
echo "aws_secret_access_key = localstack" >> ~/.aws/credentials
echo "region = us-east-1" >> ~/.aws/credentials
- name: Test
run: go test -v ./...
env:
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}