chore(release): 7.1.0 #369
Workflow file for this run
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
--- | |
name: PR | |
on: | |
pull_request: | |
jobs: | |
LintAndBuild: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
go: ['1.21.x'] | |
steps: | |
- name: Check conventional commits in PR | |
uses: Namchee/[email protected] | |
with: | |
access_token: ${{ secrets.github_token }} | |
close: false | |
strict: false | |
title_pattern: '([fix|enh|feat|ci|chore|docs\-]+)(\([\w\-]+\))?!?: [A-Z][\w\s:\-]+' | |
commit_pattern: '([fix|enh|feat|ci|chore|docs\-]+)(\([\w\-]+\))?!?: [A-Z][\w\s:\-]+' | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Lint | |
uses: reviewdog/[email protected] | |
with: | |
github_token: ${{ secrets.github_token }} | |
golangci_lint_flags: "--config=.golangci.yml" | |
fail_on_error: true | |
- name: Setup env | |
run: | | |
echo "GOPATH=$(dirname $GITHUB_WORKSPACE)" >> $GITHUB_ENV | |
echo "$(dirname $GITHUB_WORKSPACE)/bin" >> $GITHUB_PATH | |
mkdir -p "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel" | |
ln -sf "$GITHUB_WORKSPACE/" "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/terraform-provider-netbox" | |
shell: bash | |
- name: Go installation | |
uses: actions/[email protected] | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Build | |
run: | | |
cd "$(dirname $GITHUB_WORKSPACE)/src/github.com/smutel/terraform-provider-netbox" | |
make build | |
shell: bash |