feat: Add Terraform version(s) 1.14.5 #743
Workflow file for this run
This file contains hidden or 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: Build | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: build-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v31 | |
| - name: Setup Cachix | |
| uses: cachix/cachix-action@v16 | |
| with: | |
| name: devenv | |
| - name: Install devenv | |
| run: nix profile add nixpkgs#devenv | |
| - name: Run tests | |
| run: devenv test | |
| build: | |
| name: "build (system: ${{ matrix.runner.system }})" | |
| runs-on: ${{ matrix.runner.os }} | |
| timeout-minutes: 30 | |
| strategy: | |
| matrix: | |
| runner: | |
| - { system: aarch64-darwin, os: macos-latest } | |
| - { system: x86_64-darwin, os: macos-15-intel } | |
| - { system: x86_64-linux, os: ubuntu-latest } | |
| fail-fast: false | |
| needs: [check] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v31 | |
| - name: Setup Cachix | |
| uses: cachix/cachix-action@v16 | |
| with: | |
| name: nixpkgs-terraform | |
| authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| skipPush: ${{ github.ref_name != 'main' }} | |
| - name: Build packages | |
| run: nix flake check | |
| template: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| needs: [build] | |
| strategy: | |
| matrix: | |
| template: | |
| - default | |
| # TODO: Fix timeout issue on a separate PR | |
| # - devenv | |
| - nixpkgs-terraform-providers-bin | |
| - terranix | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v31 | |
| - name: Setup Cachix | |
| uses: cachix/cachix-action@v16 | |
| with: | |
| name: nixpkgs-terraform | |
| extraPullNames: devenv | |
| - name: Replace inputs on templates | |
| run: sed -i 's/github:stackbuilders\/nixpkgs-terraform/github:stackbuilders\/nixpkgs-terraform\/${{ github.sha }}/g' templates/*/flake.nix | |
| - name: Create a temporary directory | |
| run: echo "tmpdir=$(mktemp -d)" >> "$GITHUB_OUTPUT" | |
| id: mktemp | |
| - name: Scaffold a new project | |
| run: nix flake init -t ${{ github.workspace }}#${{ matrix.template }} | |
| working-directory: ${{ steps.mktemp.outputs.tmpdir }} | |
| - name: Install dependencies | |
| run: nix develop --accept-flake-config --impure -c true | |
| working-directory: ${{ steps.mktemp.outputs.tmpdir }} | |
| - name: Run smoke test | |
| run: nix develop --accept-flake-config --impure -c terraform --version | |
| working-directory: ${{ steps.mktemp.outputs.tmpdir }} |