chore(deps): bump golang.org/x/tools from 0.18.0 to 0.19.0 #18
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
name: Build and Test | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
go-version: [1.21.x,1.22.x] | |
runs-on: ${{ matrix.os }} | |
# env: | |
# MONGO_SERVER_URL: mongodb://localhost:27017 | |
# MONGO_PORT: 27017 | |
# If test are affected by mongo, then set matrix-os to [ubuntu-latest] | |
# services: | |
# mongo: | |
# image: mongo:7 | |
# ports: | |
# - 27017:27017 | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
id: go | |
- uses: actions/checkout@v4 | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Get dependencies | |
run: go mod download | |
- name: Build | |
run: make build | |
- name: Test and Coverage | |
run: make cover | |
- name: Coveralls | |
uses: shogo82148/actions-goveralls@v1 | |
with: | |
path-to-profile: ./tmp/cover.out | |
flag-name: OS-${{ matrix.os }} Go-${{ matrix.go-version }} | |
parallel: true | |
build-finish: | |
name: Build Finish | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: shogo82148/actions-goveralls@v1 | |
with: | |
parallel-finished: true | |
license-scan: | |
name: License scan | |
needs: [build-finish] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install FOSSA | |
run: | | |
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install-latest.sh | bash | |
- name: Run FOSSA analysis | |
env: | |
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} | |
run: fossa analyze | |
- name: Check FOSSA status | |
env: | |
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} | |
run: fossa test | |
semantic-release: | |
name: Semantic Release | |
needs: [license-scan] | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
issues: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run semantic-release | |
if: github.repository == 'bartventer/docstore-gen' && github.event_name == 'push' | |
run: | | |
yarn global add semantic-release@17 | |
semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |