build(deps): bump github.com/go-openapi/swag from 0.22.9 to 0.23.0 #460
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: Unit-Tests | |
on: | |
pull_request: | |
paths: | |
- 'go.mod' | |
- '**.go' | |
- '**.yml' | |
push: | |
paths: | |
- 'go.mod' | |
- '**.go' | |
- '**.yml' | |
jobs: | |
test: | |
name: Test on go ${{ matrix.go_version }} and ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] # , windows-latest | |
go_version: ['1.21'] | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# for all ctx vars: https://docs.github.com/en/actions/learn-github-actions/contexts#runner-context | |
# note: ls is not supported on Windows | |
- name: Checkout deps repo | |
working-directory: ${{ runner.workspace }} | |
run: | | |
pwd | |
git clone --depth=1 https://github.com/gookit/goutil | |
git clone --depth=1 https://github.com/gookit/gcli | |
git clone --depth=1 https://github.com/gookit/greq | |
git clone --depth=1 https://github.com/gookit/gitw | |
ls -al . | |
- name: Setup Go Faster | |
uses: WillAbides/setup-go-faster@v1.14.0 | |
timeout-minutes: 3 | |
with: | |
go-version: ${{ matrix.go_version }} | |
# pwd == ${{ github.workspace }} | |
# mkdir -p ${{ github.workspace }}/go/src/github.com/${{ github.repository }} | |
# echo "${{ github.workspace }}/go/bin" >> $GITHUB_PATH | |
- name: Prepare go workspace | |
run: | | |
pwd | |
cp .github/go.work.example ../go.work | |
ls -al ../ | |
go env GOWORK | |
- name: Build and run tests | |
# run: go test -v -cover ./... | |
# must add " for profile.cov on Windows OS | |
# go test -v -coverprofile="profile.cov" ./... | |
run: | | |
pwd | |
cat ../go.work | |
go mod tidy | |
make install | |
kite -V | |
kite | |