Skip to content

style(pre-commit): checking files against pre-commit #18

style(pre-commit): checking files against pre-commit

style(pre-commit): checking files against pre-commit #18

Workflow file for this run

name: build
on:
push:
branches:
- main
- feat/*
- hotfix/*
- bugfix/*
pull_request:
branches:
- main
- feat/*
- hotfix/*
- bugfix/*
workflow_dispatch:
jobs:
ci:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Build
run: make ci
- name: Upload coverage
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.os }}
path: coverage.*
- run: goreleaser release --clean --snapshot
if: ${{ runner.os == 'Linux' }}
- name: Upload dist
uses: actions/upload-artifact@v4
with:
name: dist-${{ matrix.os }}
path: dist
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
file: ./coverage.out
token: ${{ secrets.CODECOV_TOKEN }}