Skip to content

Commit c9672cd

Browse files
committed
feat: Init the project
1 parent 3d565db commit c9672cd

File tree

3,330 files changed

+859753
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,330 files changed

+859753
-4
lines changed

.github/workflows/checks.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
name: checks
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
go: [ '1.13.x', '1.14.x' ]
17+
steps:
18+
- name: Checkout
19+
uses: actions/[email protected]
20+
21+
- name: Lint
22+
uses: reviewdog/[email protected]
23+
with:
24+
github_token: ${{ secrets.github_token }}
25+
golangci_lint_flags: "--config=.golangci.yml"
26+
27+
- name: Setup env
28+
run: |
29+
echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)"
30+
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin"
31+
mkdir -p "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel"
32+
ln -sf "$GITHUB_WORKSPACE/" "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/terraform-provider-netbox"
33+
shell: bash
34+
35+
- name: Go installation
36+
uses: actions/[email protected]
37+
with:
38+
go-version: ${{ matrix.go }}
39+
40+
- name: Build
41+
run: |
42+
cd "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/terraform-provider-netbox"
43+
make build
44+
shell: bash

.gitignore

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,50 @@
1-
# Local .terraform directories
1+
# Binaries for programs and plugins
2+
*.exe
3+
*.exe~
4+
*.dll
5+
*.so
6+
*.dylib
7+
8+
# Test binary, built with `go test -c`
9+
*.test
10+
11+
# Output of the go coverage tool, specifically when used with LiteIDE
12+
*.out
13+
14+
# Dependency directories (remove the comment below to include it)
15+
# vendor/
16+
17+
# Local .terraform directories
218
**/.terraform/*
19+
**/terraform.d/*
320

421
# .tfstate files
522
*.tfstate
623
*.tfstate.*
724

8-
# .tfvars files
9-
*.tfvars
25+
# Crash log files
26+
crash.log
27+
28+
# Ignore any .tfvars files that are generated automatically for each Terraform run. Most
29+
# .tfvars files are managed as part of configuration and so should be included in
30+
# version control.
31+
#
32+
# example.tfvars
33+
34+
# Ignore override files as they are usually used to override resources locally and so
35+
# are not checked in
36+
override.tf
37+
override.tf.json
38+
*_override.tf
39+
*_override.tf.json
40+
41+
# Include override files you do wish to add to version control using negated pattern
42+
#
43+
# !example_override.tf
44+
45+
# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
46+
# example: *tfplan*
47+
48+
# Exclude the provider
49+
terraform-provider-netbox*
50+
builds/*

0 commit comments

Comments
 (0)