forked from dvulpe/bazel-terraform-rules
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from theothertomelliott/init_on_build
Run terraform init during the build phase
- Loading branch information
Showing
100 changed files
with
1,198 additions
and
5,339 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"image": "ghcr.io/theothertomelliott/bazel-terraform-rules-devcontainer:latest", | ||
"onCreateCommand": "bazelisk", // Download the right version of Bazel | ||
"image": "mcr.microsoft.com/devcontainers/go:1.20", | ||
// Install and set up Bazelisk | ||
"onCreateCommand": "go install github.com/bazelbuild/[email protected] && go install github.com/bazelbuild/buildtools/[email protected] && echo 'alias bazel=\"bazelisk\"' >> /home/vscode/.bashrc && bazelisk", | ||
// Configure tool-specific properties. | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: CI | |
|
||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [ '**' ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
|
@@ -14,19 +14,16 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '>=1.17.0' | ||
- run: go install github.com/bazelbuild/bazelisk@latest | ||
- name: bazel cache | ||
uses: actions/cache@v2 | ||
uses: actions/checkout@v4 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
path: /github/home/.bazel_cache | ||
key: ${{ runner.os }}-${{ hashFiles('WORKSPACE') }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ hashFiles('WORKSPACE') }} | ||
# Avoid downloading Bazel every time. | ||
bazelisk-cache: true | ||
# Store build cache per workflow. | ||
disk-cache: ${{ github.workflow }}-${{ matrix.os }} | ||
# Share repository cache between workflows. | ||
repository-cache: true | ||
- name: Build all examples | ||
run: bazelisk build //examples/... | ||
- name: Run tests | ||
run: bazelisk test //... | ||
- name: Validate providers module | ||
run: bazelisk run //modules/provider:terraform -- validate |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
load("@bazel_gazelle//:def.bzl", "gazelle") | ||
|
||
# gazelle:prefix tfmodules | ||
gazelle(name = "gazelle") | ||
gazelle(name = "gazelle") |
This file contains 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
Oops, something went wrong.