Skip to content

Commit

Permalink
Clean workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
juliocc committed Apr 25, 2023
1 parent 4245faa commit f4b8a61
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
5 changes: 1 addition & 4 deletions .github/actions/fabric-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,16 @@ runs:
echo 'disable_checkpoint = true' \
| tee -a /home/runner/.terraformrc
mkdir -p ${{ env.TF_PLUGIN_CACHE_DIR }}
- name: Download lockfile
uses: actions/download-artifact@v3
with:
name: lockfile
path: tools/lockfile

- name: Cache Terraform
- name: Download Terraform provider cache
uses: actions/cache@v3
with:
path: ${{ env.TF_PLUGIN_CACHE_DIR }}
key: ${{ runner.os }}-terraform-${{ hashFiles('tools/lockfile/.terraform.lock.hcl') }}

# avoid conflicts with user-installed providers on local machines
- name: Pin provider versions
shell: bash
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,12 @@ jobs:
cd tools/lockfile
terraform init -upgrade=true
- name: Cache Terraform
- name: Upload Terraform provider cache
uses: actions/cache@v3
with:
path: ${{ env.TF_PLUGIN_CACHE_DIR }}
key: ${{ runner.os }}-terraform-${{ hashFiles('tools/lockfile/.terraform.lock.hcl') }}

- name: tf provider cache content
shell: bash
run: |
ls -Ra /home/runner/.terraform.d/plugin-cache
- name: Upload lockfile
uses: actions/upload-artifact@v3
with:
Expand Down
12 changes: 6 additions & 6 deletions tools/lockfile/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

resource "local_file" "default" {}
data "archive_file" "bundle" {}
resource "azuread_user" "default" {}
resource "azurerm_resource_group" "default" {}
resource "github_branch" "default" {}
resource "google_service_account" "sa1" {}
resource "google_service_account" "sa2" { provider = google-beta }
resource "local_file" "default" {}
resource "random_pet" "default" {}
resource "tls_private_key" "default" {}
resource "github_branch" "default" {}
resource "time_static" "default" {}
resource "tls_private_key" "default" {}
resource "vsphere_role" "default" {}
resource "azurerm_resource_group" "default" {}
resource "azuread_user" "default" {}
data "archive_file" "bundle" {}

0 comments on commit f4b8a61

Please sign in to comment.