Skip to content

init(opentofu): test PR ci #18

init(opentofu): test PR ci

init(opentofu): test PR ci #18

Workflow file for this run

name: Tests
on:
push:
branches:
- main
paths:
- '**.rs'
- '**.toml'
- '.github/workflows/tests.yml'
tags:
- '*'
pull_request:
branches:
- main
permissions: {}
env:
CARGO_TERM_COLOR: always
jobs:
tfexe:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
#os: [ubuntu-latest, macos-latest]
project: [project1, project2, project4]
tfexe: [terraform, tofu, tfswitch]
steps:
- uses: actions/checkout@v3
- uses: hashicorp/setup-terraform@v2.0.3
- uses: opentofu/setup-opentofu@v1.0.0
- if: ${{ matrix.tfexe == 'tfswitch' }}
run: curl -L https://raw.githubusercontent.com/warrensbox/terraform-switcher/release/install.sh | sudo bash
- run: cargo run -- init
working-directory: ./test_dir/${{ matrix.project }}/
env:
TFEXE: ${{ matrix.tfexe }}