Prepare release v0.35.1 #251
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
on: push | |
concurrency: | |
group: ci-${{ github.head_ref || github.ref }}-${{ github.repository }} | |
cancel-in-progress: true | |
name: Build on push | |
jobs: | |
tests-unit: | |
name: Unit tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: ["1.21.x", "1.22.x" ] | |
steps: | |
- name: Install Go ${{ matrix.go }} | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Get Golang Version | |
id: goversion | |
run: | | |
echo "GOVERSION=$(go env GOVERSION)" >> $GITHUB_ENV | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install deps | |
run: | | |
sudo -E env "PATH=$PATH" make deps && | |
sudo pip install j2cli | |
- name: Install GoReleaser | |
uses: goreleaser/goreleaser-action@v4 | |
with: | |
install-only: true | |
- name: Build test | |
run: sudo -E env "PATH=$PATH" make goreleaser-snapshot | |
- name: Tests | |
run: | | |
sudo -E env "PATH=$PATH" make test-coverage |