Skip to content

Commit

Permalink
[ignore] Update CHANGELOG.md for v1.2.1 release and add CI testing
Browse files Browse the repository at this point in the history
  • Loading branch information
lhercot committed Jul 13, 2024
1 parent e0c330c commit c84c00b
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 3 deletions.
87 changes: 87 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: CI

on:
push:
branches: [master]
pull_request:

permissions:
# Permission for checking out code
contents: read

jobs:
build:
name: Check & Build Provider
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: chmod +x ./scripts/gofmtcheck.sh
- name: gofmt Check
run: ./scripts/gofmtcheck.sh
- run: go mod tidy
- run: go mod vendor
- name: Check vendor for changes
run: git diff --exit-code
- name: Build
run: go build -v

go-releaser:
name: Dry-Run GoReleaser Check
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Unshallow
run: git fetch --prune --unshallow
- uses: actions/setup-go@v5
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
install-only: true
version: latest
- name: GoReleaser Release Check
run: goreleaser release --skip=publish,sign --snapshot --clean

# acceptance:
# name: Acceptance Tests
# if: github.repository_owner == 'CiscoDevNet'
# needs: [build]
# runs-on: ubuntu-latest
# env:
# MSO_USERNAME: 'ansible_github_ci'
# MSO_PASSWORD: 'sJ94G92#8dq2hx*K4qh'
# concurrency:
# group: tf-mso-ci-test-${{ matrix.ndo_host.name }}
# cancel-in-progress: false
# strategy:
# fail-fast: false
# matrix:
# ndo_host:
# - name: v4.1
# url: 'https://173.36.219.32/'
# - name: v4.3
# url: 'https://173.36.219.35/'
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-go@v5
# with:
# go-version-file: 'go.mod'
# - uses: hashicorp/setup-terraform@v3
# with:
# terraform_version: '1.7.*'
# terraform_wrapper: false
# - name: Terraform Acceptance Test (NDO ${{ matrix.ndo_host.name }})
# run: go test github.com/CiscoDevNet/terraform-provider-mso/mso -v -race -timeout 300m -coverprofile=coverage.out -covermode=atomic
# env:
# TF_ACC: '1'
# TF_ACC_STATE_LINEAGE: '1'
# MSO_URL: ${{ matrix.ndo_host.url }}
# - name: Upload coverage to Codecov
# # Upload Coverage on latest only
# if: ${{ matrix.ndo_host.name == 'v4.3'}}
# uses: codecov/codecov-action@v4
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.2.1 (July 12, 2024)
BUG FIXES:
- Add check to avoid error in plan when mso_schema_site_service_graph resource is used when template does not exist yet.

## 1.2.0 (July 2, 2024)
BUG FIXES:
- Prevent destroy operation for static ports in bulk list when updating the list
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Requirements
- [Go](https://golang.org/doc/install) Latest Version

## Building The Provider ##
Clone this repository to: `$GOPATH/src/github.com/ciscoecosystem/terraform-provider-mso`.
Clone this repository to: `$GOPATH/src/github.com/CiscoDevNet/terraform-provider-mso`.
Clone mso-go-client to `$GOPATH/src/github.com/ciscoecosystem/mso-go-client`.

```sh
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/terraform-providers/terraform-provider-mso
module github.com/CiscoDevNet/terraform-provider-mso

go 1.13

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"github.com/CiscoDevNet/terraform-provider-mso/mso"
"github.com/hashicorp/terraform-plugin-sdk/plugin"
"github.com/hashicorp/terraform-plugin-sdk/terraform"
"github.com/terraform-providers/terraform-provider-mso/mso"
)

func main() {
Expand Down

0 comments on commit c84c00b

Please sign in to comment.