Skip to content

feat: add release workflow (#17) #27

feat: add release workflow (#17)

feat: add release workflow (#17) #27

Workflow file for this run

name: code
on:
push:
branches:
- 'main'
pull_request:
paths:
- '**/*.go'
- '**/*.mod'
- '**/*.sum'
- '.github/workflows/*.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # actions/checkout@v3
name: Checkout
with:
fetch-depth: 0
- uses: ./.github/actions/setup
name: Set up Go
- name: Build
run: make build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # actions/checkout@v3
name: Checkout
with:
fetch-depth: 0
- uses: ./.github/actions/setup
name: Set up Go
- name: Test
run: make test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # actions/checkout@v3
name: Checkout
with:
fetch-depth: 0
- uses: ./.github/actions/setup
name: Set up Go
- uses: golangci/golangci-lint-action@v3
name: Lint
with:
version: latest
only-new-issues: true
# TODO(amalucelli): Add the tflint once this issue is solved:
# https://github.com/bflad/tfproviderlint/issues/255