Bump golang.org/x/net from 0.15.0 to 0.17.0 (#18) #30
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 go app | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [ '1.18', '1.19' ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: "All updates" | |
run: sudo apt-get update && sudo apt-get -y upgrade | |
# Install all the dependencies | |
- name: Install dependencies | |
run: | | |
go version | |
go get -u golang.org/x/lint/golint | |
- name: Run build | |
run: GOFLAGS=-mod=mod go build -o bin/npv main.go | |
- name: Run the app | |
run: sudo go run ./main.go run single 1.1.1.1 | |