Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 49 additions & 49 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,43 @@ name: Tests
on:
pull_request:
paths-ignore:
- 'README.md'
- "README.md"
push:
paths-ignore:
- 'README.md'
- "README.md"
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
cache: true
id: go
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: "go.mod"
cache: true
id: go

- name: Get dependencies
run: |
go mod download
- name: Get dependencies
run: |
go mod download

- name: Build
run: |
go build -v .
- name: Build
run: |
go build -v .

generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
go-version-file: "go.mod"
cache: true
- uses: hashicorp/setup-terraform@v3
- run: go generate ./...
- name: git diff
run: |
Expand All @@ -61,43 +61,43 @@ jobs:
# regularly on HashiCorp product pages for each HashiCorp product.
# See: https://support.hashicorp.com/hc/en-us/articles/360021185113
terraform:
- '1.5.*'
- '1.6.*'
- "1.8.*"
- "1.9.*"
- "1.10.*"
# We will support the 3 last minor versions as Grafana honor 2 versions
# before dropping a deprecated flag
mimir:
- '2.11.0'
- '2.12.0'
- '2.13.0'
- "2.13.0"
- "2.14.0"
- "2.15.0"

steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
cache: true
id: go
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: "go.mod"
cache: true
id: go

- uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false

- name: Get dependencies
run: |
go mod download
- name: Get dependencies
run: |
go mod download

# Not using `services` as they do not allow us to configure mimir and we
# don't want to build/maintain our own image just for that.
# The makefile will take care of spawning a mimir instance.
- name: TF acceptance tests
timeout-minutes: 10
env:
TF_ACC: "1"
MIMIRTOOL_ADDRESS: "http://localhost:8080"
run: |
MIMIR_VERSION=${{ matrix.mimir }} make testacc
# Not using `services` as they do not allow us to configure mimir and we
# don't want to build/maintain our own image just for that.
# The makefile will take care of spawning a mimir instance.
- name: TF acceptance tests
timeout-minutes: 10
env:
TF_ACC: "1"
MIMIRTOOL_ADDRESS: "http://localhost:8080"
run: |
MIMIR_VERSION=${{ matrix.mimir }} make testacc
Loading