Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from tfmigrator/ci/integration-test
Browse files Browse the repository at this point in the history
ci: integration test
  • Loading branch information
suzuki-shunsuke authored Oct 24, 2021
2 parents 781c668 + 7528b50 commit 3993c08
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/integration-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
name: integration-test
on:
push:
branches: [main]
tags: [v*]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

- uses: actions/setup-go@v2
with:
go-version: '1.17'
- run: go build -o /usr/local/bin/tfmigrator ./cmd/tfmigrator

- uses: int128/aqua-action@v1

- run: tfenv install
working-directory: examples/example1
- run: terraform init
working-directory: examples/example1
- run: terraform apply -auto-approve
working-directory: examples/example1
- run: tfmigrator run -dry-run main.tf
working-directory: examples/example1
- run: tfmigrator run main.tf
working-directory: examples/example1
- run: terraform plan
working-directory: examples/example1
- run: terraform state list
working-directory: examples/example1
- run: git diff .
working-directory: examples/example1
6 changes: 6 additions & 0 deletions aqua.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
registries:
- type: standard
ref: v0.10.1 # renovate: depName=suzuki-shunsuke/aqua-registry

packages:
- name: tfutils/[email protected]

0 comments on commit 3993c08

Please sign in to comment.