chore(deps): bump golang.org/x/mod from 0.21.0 to 0.22.0 #773
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: Build | |
on: | |
push: | |
branches: [ main, dev ] | |
pull_request: | |
branches: [ main, dev ] | |
jobs: | |
build: | |
runs-on: zondax-runners | |
container: | |
image: golang:1.22 | |
options: --tty | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.22' | |
- name: Build | |
run: | | |
git config --global --add safe.directory "*" | |
make build | |
env: | |
TOKEN: ${{ secrets.PECORINO_READ_TOKEN }} | |
checks: | |
runs-on: zondax-runners | |
container: | |
image: golang:1.22 | |
options: --tty | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.22' | |
- name: ModTidy check | |
run: | | |
git config --global --add safe.directory "*" | |
make check-modtidy | |
- name: Lint check | |
run: | | |
make install_lint | |
make lint | |
tests: | |
runs-on: zondax-runners | |
container: | |
image: golang:1.22 | |
options: --tty | |
timeout-minutes: 50 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.22' | |
- name: test | |
run: | | |
git config --global --add safe.directory "*" | |
make test |