Skip to content

feat: initial commit, includes init commands and module command #6

feat: initial commit, includes init commands and module command

feat: initial commit, includes init commands and module command #6

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: go-with-cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version-file: go.mod
- run: make install-tools
- run: make lint
test:
name: Test
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v4
- name: go-with-cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version-file: go.mod
- run: make install-tools
- run: make test
release:
name: Release
runs-on: ubuntu-latest
needs: test
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: go-with-cache
uses: magnetikonline/action-golang-cache@v4
with:
go-version-file: go.mod
- run: make install-tools
- uses: go-semantic-release/action@v1
with:
bin: ./bin/semantic-release
hooks: goreleaser
allow-initial-development-versions: true
args: --allow-initial-development-versions --allow-no-changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}