github.com/terraform-linters/tflint-ruleset-azurerm@v0.26.0/.github/workflows/e2e.yml (about)

     1  name: e2e
     2  
     3  on:
     4    push:
     5      branches:
     6        - master
     7    pull_request:
     8      branches:
     9        - master
    10    schedule:
    11      - cron: "0 0 * * *"
    12  
    13  jobs:
    14    e2e:
    15      name: ${{ matrix.os }} (${{ matrix.version }})
    16      runs-on: ${{ matrix.os }}
    17      strategy:
    18        matrix:
    19          os: [ubuntu-latest, windows-latest]
    20          version: [v0.42.0, latest]
    21      env:
    22        TFLINT_VERSION: ${{ matrix.version }}
    23      steps:
    24      - name: Checkout
    25        uses: actions/checkout@v4
    26      - name: Set up Go
    27        uses: actions/setup-go@v5
    28        with:
    29          go-version-file: 'go.mod'
    30      - name: Install TFLint
    31        run: curl -sL https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
    32        env:
    33          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    34      - name: Install plugin (Linux)
    35        if: runner.os == 'Linux'
    36        run: make install
    37      - name: Install plugin (Windows)
    38        if: runner.os == 'Windows'
    39        run: |
    40          mkdir -p ~/.tflint.d/plugins
    41          go build -o ~/.tflint.d/plugins/tflint-ruleset-azurerm.exe
    42        shell: bash
    43      - name: Run E2E tests
    44        run: make e2e