Skip to content

fix: refresh go mod proxy (#6) #2

fix: refresh go mod proxy (#6)

fix: refresh go mod proxy (#6) #2

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get protoc
run: |
sudo curl -L https://github.com/protocolbuffers/protobuf/releases/download/v3.15.0/protoc-3.15.0-linux-x86_64.zip > /tmp/protoc.zip
sudo unzip /tmp/protoc.zip -d /usr/local
sudo chown -R $USER /usr/local
- name: Get dependencies
run: go get -v -t -d ./...
- name: Build
run: make all
- name: Test
run: make test
- name: Refresh Go Mod Proxy
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
curl -X POST "https://proxy.golang.org/github.com/fern-api/protoc-gen-openapi/@v/${{ github.sha }}.info"