chore: update deps (#117) #466
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
name: Go Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.3 | |
cache: false | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build and tests | |
env: | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
LANG: en_US.UTF-8 | |
run: make --file=config/Makefile.base --trace all; | |
- name: Send coverage report | |
uses: shogo82148/actions-goveralls@v1 | |
with: | |
path-to-profile: ./build/test-all.cover | |
bash: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.3 | |
- name: Setup Npm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run Bash compatibility tests | |
env: | |
BASH_COMPAT: 3.2 | |
run: make --file=config/Makefile.base --trace test-self; | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.3 | |
- name: Setup Npm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Run Bash compatibility tests | |
run: |- | |
make --version; | |
make --file=config/Makefile.base --trace test-self; | |
macos: | |
runs-on: macos-latest | |
steps: | |
# - name: Set up Docker | |
# uses: crazy-max/ghaction-setup-docker@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.3 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run MacOS compatibility tests | |
env: | |
BASH_COMPAT: 3.2 | |
run: |- | |
make --version; | |
make --file=config/Makefile.base test-self; | |
macos-brewed: | |
runs-on: macos-latest | |
steps: | |
# - name: Set up Docker | |
# uses: crazy-max/ghaction-setup-docker@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.3 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run MacOS compatibility tests | |
env: | |
BASH_COMPAT: 3.2 | |
run: |- | |
brew install make; | |
export PATH="/opt/homebrew/opt/make/libexec/gnubin:${PATH}"; | |
make --version; | |
make --file=config/Makefile.base --trace test-self; | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.3 | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Release new version | |
env: | |
GH_TOKEN: ${{ github.token }} | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
run: |- | |
make --file=config/Makefile.base --trace version-release | |
- name: Publish new version | |
env: | |
GH_TOKEN: ${{ github.token }} | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
run: |- | |
sleep 60 && make --file=config/Makefile.base --trace version-publish || true |