Skip to content

chore: release v0.4.0 #30

chore: release v0.4.0

chore: release v0.4.0 #30

Workflow file for this run

name: CI
on:
push:
branches: [master, main]
tags-ignore:
- "v*"
pull_request:
branches: [master, main]
jobs:
test:
name: Test
runs-on: ubuntu-latest
if: "!startsWith(github.event.head_commit.message, 'chore: release')"
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Download dependencies
run: go mod download
- name: Run tests
run: go test -v ./...
lint:
name: Lint
runs-on: ubuntu-latest
if: "!startsWith(github.event.head_commit.message, 'chore: release')"
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
build:
name: Build
runs-on: ubuntu-latest
if: "!startsWith(github.event.head_commit.message, 'chore: release')"
strategy:
matrix:
include:
- goos: linux
goarch: amd64
- goos: linux
goarch: arm64
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64
- goos: windows
goarch: amd64
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
if [ "$GOOS" = "windows" ]; then
go build -o devir.exe ./cmd/devir
else
go build -o devir ./cmd/devir
fi